home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Skins and Design
BlueVision
Blue Vision
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ge2301" data-source="post: 1130876" data-attributes="member: 145639"><p>Thanks a lot, that was really fast <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>I'll try to adapt it during the weekend. If everything goes well the home screen can be ready for next weekly.</p><p>I modified the styles for the Listview of latest MediaItems. It can be simplified later, but want to try it at first with minimum changes. I'll add below code to mediastyles.xaml.</p><ul> <li data-xf-list-type="ul">New Model-ID used</li> <li data-xf-list-type="ul">Renaming of styles to allow coexistance with LAtestMediaPlugin<br /> </li> <li data-xf-list-type="ul">Columns="{x<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" />tatic latestmedia:LatestMediaModel.QUERY_LIMIT}" exchanged with Columns="2" (according to mock-up)</li> <li data-xf-list-type="ul">Removal of unncessary ListView Styles, only "GridItemsHost" remaining</li> </ul><p>[html]<Style x:Key="MediaItemsListListViewStyle_BV" BasedOn="{ThemeResource ContentsMenuListViewStyle}"></p><p><Setter Property="ItemTemplate"/> <!-- Don't inherit the ItemTemplate from ContentsMenuListViewStyle - It should remain null to make the SkinEngine choose an appropriate template --></p><p><Setter Property="DataStringProvider" Value="{ThemeResource MediaItemDataStringProvider}"/></p><p><Setter Property="ItemContainerStyle" Value="{ThemeResource MediaItemWithContextMenuContainerStyle}"/></p><p><Setter Property="Template"></p><p><Setter.Value></p><p><ControlTemplate TargetType="{x:Type ListView}"></p><p> <ScrollViewer CanContentScroll="True" Margin="5"</p><p> HorizontalScrollBarVisibility="Disabled" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></p><p> <ItemsPresenter VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/></p><p> </ScrollViewer></p><p></ControlTemplate></p><p></Setter.Value></p><p></Setter></p><p><BindingSetter Property="ItemsPanel"></p><p> <BindingSetter.BindingWrapper></p><p> <BindingWrapper></p><p> <BindingWrapper.Binding></p><p></p><p> <Binding.Source></p><p> <ItemsPanelTemplate></p><p> <VirtualizingWrapPanel x:Name="GridItemsHost" IsItemsHost="True"/></p><p> </ItemsPanelTemplate></p><p> </Binding.Source></p><p></p><p> </BindingWrapper.Binding></p><p> </BindingWrapper></p><p> </BindingSetter.BindingWrapper></p><p></BindingSetter></p><p></Style></p><p></p><p><!-- Latest media styles --></p><p><Model x:Key="MediaModel" Id="19FBB179-51FB-4DB6-B19C-D5C765E9B870"/></p><p><Style x:Key="LatestMediaListViewStyle_BV" BasedOn="{ThemeResource MediaItemsListListViewStyle_BV}"></p><p> <Setter Property="ItemsPanel"></p><p> <Setter.Value></p><p> <ItemsPanelTemplate></p><p> <UniformGrid x:Name="ListItemsHost" Columns="2" IsItemsHost="True" /></p><p> </ItemsPanelTemplate></p><p> </Setter.Value></p><p> </Setter></p><p></Style></p><p></p><p><DataTemplate x:Key="NestedMediaListDataTemplate_BV" DataType="{x:Type collections:ListItem}"></p><p> <StackPanel></p><p> <Label Content="{Binding [Name]}" Color="{ThemeResource TextColor}" /></p><p> <ListView x:Name="MediaItemsList" Style="{ThemeResource LatestMediaListViewStyle_BV}" ItemsSource="{Binding Items}"</p><p> HorizontalAlignment="Stretch"></p><p> <ListView.Resources></p><p> <Command x:Key="Menu_Command" Source="{StaticResource MediaModel}"</p><p> Path="Select" Parameters="{LateBoundValue BindingValue={Binding}}"/></p><p> </ListView.Resources></p><p> </ListView></p><p> </StackPanel></p><p></DataTemplate></p><p></p><p><Style x:Key="NestedMediaListViewStyle_BV" BasedOn="{ThemeResource DefaultListViewStyle}"></p><p><Setter Property="ItemTemplate" Value="{ThemeResource NestedMediaListDataTemplate_BV}"/></p><p></Style>[/html]</p></blockquote><p></p>
[QUOTE="ge2301, post: 1130876, member: 145639"] Thanks a lot, that was really fast :) I'll try to adapt it during the weekend. If everything goes well the home screen can be ready for next weekly. I modified the styles for the Listview of latest MediaItems. It can be simplified later, but want to try it at first with minimum changes. I'll add below code to mediastyles.xaml. [LIST] [*]New Model-ID used [*]Renaming of styles to allow coexistance with LAtestMediaPlugin [*]Columns="{x:Static latestmedia:LatestMediaModel.QUERY_LIMIT}" exchanged with Columns="2" (according to mock-up) [*]Removal of unncessary ListView Styles, only "GridItemsHost" remaining [/LIST] [html]<Style x:Key="MediaItemsListListViewStyle_BV" BasedOn="{ThemeResource ContentsMenuListViewStyle}"> <Setter Property="ItemTemplate"/> <!-- Don't inherit the ItemTemplate from ContentsMenuListViewStyle - It should remain null to make the SkinEngine choose an appropriate template --> <Setter Property="DataStringProvider" Value="{ThemeResource MediaItemDataStringProvider}"/> <Setter Property="ItemContainerStyle" Value="{ThemeResource MediaItemWithContextMenuContainerStyle}"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type ListView}"> <ScrollViewer CanContentScroll="True" Margin="5" HorizontalScrollBarVisibility="Disabled" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <ItemsPresenter VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/> </ScrollViewer> </ControlTemplate> </Setter.Value> </Setter> <BindingSetter Property="ItemsPanel"> <BindingSetter.BindingWrapper> <BindingWrapper> <BindingWrapper.Binding> <Binding.Source> <ItemsPanelTemplate> <VirtualizingWrapPanel x:Name="GridItemsHost" IsItemsHost="True"/> </ItemsPanelTemplate> </Binding.Source> </BindingWrapper.Binding> </BindingWrapper> </BindingSetter.BindingWrapper> </BindingSetter> </Style> <!-- Latest media styles --> <Model x:Key="MediaModel" Id="19FBB179-51FB-4DB6-B19C-D5C765E9B870"/> <Style x:Key="LatestMediaListViewStyle_BV" BasedOn="{ThemeResource MediaItemsListListViewStyle_BV}"> <Setter Property="ItemsPanel"> <Setter.Value> <ItemsPanelTemplate> <UniformGrid x:Name="ListItemsHost" Columns="2" IsItemsHost="True" /> </ItemsPanelTemplate> </Setter.Value> </Setter> </Style> <DataTemplate x:Key="NestedMediaListDataTemplate_BV" DataType="{x:Type collections:ListItem}"> <StackPanel> <Label Content="{Binding [Name]}" Color="{ThemeResource TextColor}" /> <ListView x:Name="MediaItemsList" Style="{ThemeResource LatestMediaListViewStyle_BV}" ItemsSource="{Binding Items}" HorizontalAlignment="Stretch"> <ListView.Resources> <Command x:Key="Menu_Command" Source="{StaticResource MediaModel}" Path="Select" Parameters="{LateBoundValue BindingValue={Binding}}"/> </ListView.Resources> </ListView> </StackPanel> </DataTemplate> <Style x:Key="NestedMediaListViewStyle_BV" BasedOn="{ThemeResource DefaultListViewStyle}"> <Setter Property="ItemTemplate" Value="{ThemeResource NestedMediaListDataTemplate_BV}"/> </Style>[/html] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Blue Vision
Contact us
RSS
Top
Bottom