Skip to content

Commit d6aef9d

Browse files
authored
Wrap Image in Viewbox with DownOnly stretch direction (#3477)
1 parent 7a11c1e commit d6aef9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Files/UserControls/FilePreviews/ImagePreview.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
mc:Ignorable="d">
1111

1212
<Grid>
13-
<Image Source="{x:Bind ViewModel.ImageSource, Mode=OneWay}" />
13+
<Viewbox StretchDirection="DownOnly">
14+
<Image Source="{x:Bind ViewModel.ImageSource, Mode=OneWay}" />
15+
</Viewbox>
1416
</Grid>
1517
</UserControl>

0 commit comments

Comments
 (0)