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 130
130
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
131
131
<Content Include =" Assets\BrushAssets\TileTexture.png" />
132
132
<Content Include =" Assets\BrushAssets\NoiseTexture.png" />
133
+ <Content Include =" Assets\checker.png" />
133
134
<Content Include =" Assets\Llama.mp3" />
134
135
<Content Include =" Assets\mslogo.png" />
135
136
<Content Include =" Assets\NotificationAssets\Cloudy-Square.png" />
Original file line number Diff line number Diff line change 4
4
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5
5
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6
6
xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
7
+ xmlns:brushes="using:Microsoft.Toolkit.Uwp.UI.Media"
7
8
mc:Ignorable="d">
8
9
9
10
<Grid>
10
11
<controls:ConstrainedBox AspectRatio="16:3" VerticalAlignment="Top">
11
12
<Image Source="/Assets/Photos/WestSeattleView.jpg" Stretch="UniformToFill"/>
12
13
</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>
13
22
</Grid>
14
23
</Page>
You can’t perform that action at this time.
0 commit comments