File tree Expand file tree Collapse file tree 5 files changed +10
-0
lines changed
Microsoft.Toolkit.Uwp.SampleApp Expand file tree Collapse file tree 5 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 130130 <!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
131131 <Content Include =" Assets\BrushAssets\TileTexture.png" />
132132 <Content Include =" Assets\BrushAssets\NoiseTexture.png" />
133+ <Content Include =" Assets\checker.png" />
133134 <Content Include =" Assets\Llama.mp3" />
134135 <Content Include =" Assets\mslogo.png" />
135136 <Content Include =" Assets\NotificationAssets\Cloudy-Square.png" />
Original file line number Diff line number Diff line change 44 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
55 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
66 xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
7+ xmlns:brushes="using:Microsoft.Toolkit.Uwp.UI.Media"
78 mc:Ignorable="d">
89
910 <Grid>
1011 <controls:ConstrainedBox AspectRatio="16:3" VerticalAlignment="Top">
1112 <Image Source="/Assets/Photos/WestSeattleView.jpg" Stretch="UniformToFill"/>
1213 </controls:ConstrainedBox>
14+ <controls:ConstrainedBox MultipleX="64"
15+ AspectRatio="1:1"
16+ MinWidth="64" MaxWidth="512">
17+ <controls:ConstrainedBox.Background>
18+ <!-- TODO: Should I make a DPI aware image? As otherwise scaling doesn't quite work at 150%? -->
19+ <brushes:TilesBrush TextureUri="ms-appx:///Assets/checker.png"/>
20+ </controls:ConstrainedBox.Background>
21+ </controls:ConstrainedBox>
1322 </Grid>
1423</Page>
You can’t perform that action at this time.
0 commit comments