- Admin
- #11
If you like to have a stable grid with flexibel aspects, then change this code with:Can you please tell me where I can find the aspect ratio for this screen so I can modify it myself. I only need portrait oriented gfx here, so I want to change this to my personal needs, thanks.
HTML:
<Grid MaxWidth="193" MaxHeight="128" OpacityMask="{ThemeResource MediaItemsOpacityBrushNormal}">
<Image Source="{Binding MediaItem}" Stretch="Uniform" FallbackSource="VideoNormal.png"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
<Image HorizontalAlignment="Left" VerticalAlignment="Top" >
<Image.Source>
<MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} == 0 ? {1} : {2}">
<Binding Path="PlayCount"/>
<Binding Source="UnwatchedTab_small.png"/>
<Binding Source=""/>
</MultiBinding>
</Image.Source>
</Image>
</Grid>
Result:
rounded corners are lost with flexibel grid, since depending on the aspect ratio different masks are used. This might be not necessary any more with DX11.
For the list view just take the code from movie and replace/adjust the code in video to have a poster aspect for videos.