|
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. --> |
2 | 2 | <Page x:Class="PrimitivesExperiment.Samples.WrapLayoutSample" |
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
10 | 10 | xmlns:muxc="using:Microsoft.UI.Xaml.Controls" |
11 | 11 | mc:Ignorable="d"> |
12 | 12 | <Page.Resources> |
13 | | - <DataTemplate x:Key="WrapTemplate" x:DataType="local:ColorItem"> |
| 13 | + <DataTemplate x:Key="WrapTemplate" |
| 14 | + x:DataType="local:ColorItem"> |
14 | 15 | <Border Width="{x:Bind Width}" |
15 | 16 | Height="48" |
16 | 17 | CornerRadius="{StaticResource ControlCornerRadius}"> |
|
26 | 27 |
|
27 | 28 | <Grid> |
28 | 29 | <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}"> |
31 | 32 | <muxc:ItemsRepeater.Layout> |
32 | 33 | <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}" /> |
35 | 36 | </muxc:ItemsRepeater.Layout> |
36 | 37 | </muxc:ItemsRepeater> |
37 | 38 | </Grid> |
|
0 commit comments