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="morpheus_xx" data-source="post: 1130832" data-attributes="member: 48495"><p>The LatestMediaModel was not intended to be used as background model from any screen, but for usage inside MediaNavigation as WorkflowModel. </p><p></p><p>So I decided to create an own LatestMediaModel for BlueVision skin which directly exposes the matching ItemLists (Videos, Series, Movies, Images, Audio, Recordings). The changes for model are commited.</p><p></p><p>Next step for screen:</p><p>[CODE=XML] <Grid</p><p> xmlns="www.team-mediaportal.com/2008/mpf/directx"</p><p> xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"</p><p> xmlns:collections="clr-namespace:MediaPortal.UI.Presentation.DataObjects;assembly=MediaPortal.UI"</p><p> ></p><p> <Grid.Resources></p><p> <Model x:Key="CurrentWeatherModel" Id="FC57FF5C-F72F-47E9-B973-338E31FF7FF1"/></p><p> <Model x:Key="LatestMediaModel" Id="19FBB179-51FB-4DB6-B19C-D5C765E9B870"/></p><p> </Grid.Resources></p><p> <Grid.RowDefinitions></p><p> <RowDefinition Height="Auto"/></p><p> <RowDefinition Height="*"/></p><p> </Grid.RowDefinitions></p><p> <Grid.ColumnDefinitions></p><p> <ColumnDefinition Width="Auto"/></p><p> <ColumnDefinition Width="*"/></p><p> </Grid.ColumnDefinitions></p><p></p><p> <Grid Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" DataContext="{Binding Source={StaticResource LatestMediaModel}}"></p><p> <Grid.RowDefinitions></p><p> <RowDefinition Height="Auto"/></p><p> <RowDefinition Height="*"/></p><p> </Grid.RowDefinitions></p><p> <Grid.ColumnDefinitions></p><p> <ColumnDefinition Width="*"/></p><p> </Grid.ColumnDefinitions></p><p> <ListView x:Name="MasterList" ItemsSource="{Binding Videos}" Style="{ThemeResource MediaItemsListListViewStyle}"></p><p> </ListView></p><p> </Grid></p><p></p><p> <StackPanel Grid.Row="1" Grid.Column="1" ></p><p> <Image x:Name="SmallIcon" Source="{Binding Source={StaticResource CurrentWeatherModel}, Path=CurrentLocation.Condition.BigIconProperty}"</p><p> IsVisible="{Binding UseInHome}" HorizontalAlignment="Center" Margin="0,0,0,0"/></p><p></p><p> <Label x:Name="Temp" Content="{Binding Source={StaticResource CurrentWeatherModel}, Path=CurrentLocation.Condition.Temperature}"</p><p> FontFamily="TitanBold" Color="{ThemeResource TextColor}" IsVisible="{Binding UseInHome}"</p><p> VerticalAlignment="Center" HorizontalAlignment="Center"/></p><p></p><p> <Label x:Name="Place" Content="{Binding Source={StaticResource CurrentWeatherModel}, Path=CurrentLocation.Name}"</p><p> FontFamily="TitanBold" Color="{ThemeResource TextColor}" IsVisible="{Binding UseInHome}"</p><p> VerticalAlignment="Center" HorizontalAlignment="Center"/></p><p> </StackPanel></p><p> </Grid></p><p>[/CODE]</p><p>Watch out for:</p><ul> <li data-xf-list-type="ul">New ModelId (LatestMedia)</li> <li data-xf-list-type="ul">New Source for ListView (Videos here)</li> <li data-xf-list-type="ul">You copied FontNames from Titanium (TitanBold) which do not match to ApolloOne skin. Maybe remove them at all (fallback to default) or specify a valid one</li> <li data-xf-list-type="ul">You need to create matching ListView Styles for Videos, Series, etc. because the default styles depend on Media plugin for view mode selection (which we don't need here but use one style)</li> </ul></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1130832, member: 48495"] The LatestMediaModel was not intended to be used as background model from any screen, but for usage inside MediaNavigation as WorkflowModel. So I decided to create an own LatestMediaModel for BlueVision skin which directly exposes the matching ItemLists (Videos, Series, Movies, Images, Audio, Recordings). The changes for model are commited. Next step for screen: [CODE=XML] <Grid xmlns="www.team-mediaportal.com/2008/mpf/directx" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:collections="clr-namespace:MediaPortal.UI.Presentation.DataObjects;assembly=MediaPortal.UI" > <Grid.Resources> <Model x:Key="CurrentWeatherModel" Id="FC57FF5C-F72F-47E9-B973-338E31FF7FF1"/> <Model x:Key="LatestMediaModel" Id="19FBB179-51FB-4DB6-B19C-D5C765E9B870"/> </Grid.Resources> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" DataContext="{Binding Source={StaticResource LatestMediaModel}}"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <ListView x:Name="MasterList" ItemsSource="{Binding Videos}" Style="{ThemeResource MediaItemsListListViewStyle}"> </ListView> </Grid> <StackPanel Grid.Row="1" Grid.Column="1" > <Image x:Name="SmallIcon" Source="{Binding Source={StaticResource CurrentWeatherModel}, Path=CurrentLocation.Condition.BigIconProperty}" IsVisible="{Binding UseInHome}" HorizontalAlignment="Center" Margin="0,0,0,0"/> <Label x:Name="Temp" Content="{Binding Source={StaticResource CurrentWeatherModel}, Path=CurrentLocation.Condition.Temperature}" FontFamily="TitanBold" Color="{ThemeResource TextColor}" IsVisible="{Binding UseInHome}" VerticalAlignment="Center" HorizontalAlignment="Center"/> <Label x:Name="Place" Content="{Binding Source={StaticResource CurrentWeatherModel}, Path=CurrentLocation.Name}" FontFamily="TitanBold" Color="{ThemeResource TextColor}" IsVisible="{Binding UseInHome}" VerticalAlignment="Center" HorizontalAlignment="Center"/> </StackPanel> </Grid> [/CODE] Watch out for: [LIST] [*]New ModelId (LatestMedia) [*]New Source for ListView (Videos here) [*]You copied FontNames from Titanium (TitanBold) which do not match to ApolloOne skin. Maybe remove them at all (fallback to default) or specify a valid one [*]You need to create matching ListView Styles for Videos, Series, etc. because the default styles depend on Media plugin for view mode selection (which we don't need here but use one style) [/LIST] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Blue Vision
Contact us
RSS
Top
Bottom