- Thread starter
- Admin
- #151
As you can see in the screenshot above there are no infos about duration and year. It's the same situation for Titanium skin.
Below the simplified code (I removed grid and other stuff). Does anyone know, if duration and year can be extracted for videos and episodes from metadata?
If not at the moment, do you know if it will be possible after MIA update?
Below the simplified code (I removed grid and other stuff). Does anyone know, if duration and year can be extracted for videos and episodes from metadata?
If not at the moment, do you know if it will be possible after MIA update?
HTML:
<media:MediaAspectWrapper MediaItem="{Binding Source={StaticResource FanArtBackgroundModel},Path=MediaItem}" >
<media:MediaAspectWrapper.Template>
<ControlTemplate>
<Label x:Name="Year" HorizontalAlignment="Left"
Content="{Binding Path=RecordingTime, Converter={StaticResource DateFormatConverter}, ConverterParameter=yyyy}" Color="{ThemeResource TextColor}"/>
</ControlTemplate>
</media:MediaAspectWrapper.Template>
</media:MediaAspectWrapper>
HTML:
<media:SeriesAspectWrapper MediaItem="{Binding Source={StaticResource FanArtBackgroundModel},Path=MediaItem}">
<media:SeriesAspectWrapper.Template>
<ControlTemplate>
<Label x:Name="Duration" Grid.Column="0" Grid.Row="2"
Content="{Binding Path=Runtime, Converter={StaticResource DurationConverter}, ConverterParameter=hh\:mm}" Color="{ThemeResource TextColor}"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="3" Margin="0,6,0,5">
<StarRatingPanel x:Name="RatingReadOnly" IsReadOnly="True" StarReadOnlyTemplate="{StaticResource StarReadOnlyTemplate}"
Maximum="10"
Value="{Binding TotalRating}">
<StarRatingPanel.LayoutTransform>
<TransformGroup>
<ScaleTransform ScaleX="1.7" ScaleY="1.5"/>
</TransformGroup>
</StarRatingPanel.LayoutTransform>
</StarRatingPanel>
</StackPanel>
</ControlTemplate>
</media:SeriesAspectWrapper.Template>
</media:SeriesAspectWrapper>