Skip to content

Commit 551e4ed

Browse files
committed
XAML Styles
1 parent 417ee66 commit 551e4ed

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

components/Primitives/samples/WrapLayoutSample.xaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
1+
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
22
<Page x:Class="PrimitivesExperiment.Samples.WrapLayoutSample"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@@ -10,7 +10,8 @@
1010
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
1111
mc:Ignorable="d">
1212
<Page.Resources>
13-
<DataTemplate x:Key="WrapTemplate" x:DataType="local:ColorItem">
13+
<DataTemplate x:Key="WrapTemplate"
14+
x:DataType="local:ColorItem">
1415
<Border Width="{x:Bind Width}"
1516
Height="48"
1617
CornerRadius="{StaticResource ControlCornerRadius}">
@@ -26,12 +27,12 @@
2627

2728
<Grid>
2829
<muxc:ItemsRepeater x:Name="WrapRepeater"
29-
ItemTemplate="{StaticResource WrapTemplate}"
30-
ItemsSource="{x:Bind ColorsCollection, Mode=OneWay}">
30+
ItemTemplate="{StaticResource WrapTemplate}"
31+
ItemsSource="{x:Bind ColorsCollection, Mode=OneWay}">
3132
<muxc:ItemsRepeater.Layout>
3233
<controls:WrapLayout x:Name="Wrap"
33-
HorizontalSpacing="{x:Bind HorizontalSpacing, Mode=OneWay}"
34-
VerticalSpacing="{x:Bind VerticalSpacing, Mode=OneWay}" />
34+
HorizontalSpacing="{x:Bind HorizontalSpacing, Mode=OneWay}"
35+
VerticalSpacing="{x:Bind VerticalSpacing, Mode=OneWay}" />
3536
</muxc:ItemsRepeater.Layout>
3637
</muxc:ItemsRepeater>
3738
</Grid>

0 commit comments

Comments
 (0)