Hello,
I have a GridView with such definition:
<GridView x:Name="grvImagesList" Grid.Row="1">
<GridView.ItemContainerStyle>
<Style TargetType="GridViewItem">
<Setter Property="Margin" Value="5"/>
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="VerticalContentAlignment" Value="Stretch" />
</Style>
</GridView.ItemContainerStyle>
</GridView>
It scales an image in such way that it covers all available space in width, and keeps image proportions, so sometime image is higher than available space in hight.
I need such set setting that It scales an image in such way that it covers all available space in width, and keeps image proportions, but if in result image is higher than available space in hight, it covers all available space in height and keeps image proportions (consequently image width is narrower than available space in width). So i need that image fits allways to available space, but keeps proportions.
How to do such settings? For this behavior ListView is acceptable but I prefer GridView.