Skip to content

Commit 52975a6

Browse files
Update sample to show how to manipulate the image center
1 parent 853a4a9 commit 52975a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Primitives/ConstrainedBox.bind

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
<Grid>
1111
<controls:ConstrainedBox AspectRatio="16:3" VerticalAlignment="Top">
12-
<Image Source="/Assets/Photos/WestSeattleView.jpg" Stretch="UniformToFill"/>
12+
<Image Source="/Assets/Photos/WestSeattleView.jpg"
13+
Stretch="UniformToFill"
14+
VerticalAlignment="Center"/> <!-- Center on the City -->
1315
</controls:ConstrainedBox>
1416
<controls:ConstrainedBox MultipleX="64"
1517
AspectRatio="1:1"

0 commit comments

Comments
 (0)