|
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 | | -<Page x:Class="WrapPanel2Experiment.Samples.WrapPanel2MegaSample" |
3 | | - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 | | - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 | | - xmlns:controls="using:CommunityToolkit.WinUI.Controls" |
6 | | - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
7 | | - xmlns:local="using:WrapPanel2Experiment.Samples" |
8 | | - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
9 | | - mc:Ignorable="d"> |
| 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 | +<Page |
| 3 | + x:Class="WrapPanel2Experiment.Samples.WrapPanel2MegaSample" |
| 4 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 5 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 6 | + xmlns:controls="using:CommunityToolkit.WinUI.Controls" |
| 7 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 8 | + xmlns:local="using:WrapPanel2Experiment.Samples" |
| 9 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 10 | + mc:Ignorable="d"> |
10 | 11 |
|
11 | 12 | <Page.Resources> |
12 | 13 | <Style TargetType="Border"> |
|
20 | 21 | </Style> |
21 | 22 | </Page.Resources> |
22 | 23 |
|
23 | | - <Grid MaxHeight="600" |
24 | | - Margin="16"> |
25 | | - <controls:WrapPanel2 HorizontalAlignment="{x:Bind LayoutHorizontalAlignment, Mode=OneWay}" |
26 | | - VerticalAlignment="{x:Bind LayoutVerticalAlignment, Mode=OneWay}" |
27 | | - ItemJustification="{x:Bind ItemJustification, Mode=OneWay}" |
28 | | - ItemSpacing="{x:Bind ItemSpacing, Mode=OneWay}" |
29 | | - ItemsStretch="{x:Bind local:WrapPanel2MegaSample.ConvertStringToItemsStretch(LayoutItemsStretch), Mode=OneWay}" |
30 | | - LineSpacing="{x:Bind LineSpacing, Mode=OneWay}" |
31 | | - Orientation="{x:Bind local:WrapPanel2MegaSample.ConvertStringToOrientation(LayoutOrientation), Mode=OneWay}"> |
| 24 | + <Grid MaxHeight="600" Margin="16"> |
| 25 | + <controls:WrapPanel2 |
| 26 | + HorizontalAlignment="{x:Bind LayoutHorizontalAlignment, Mode=OneWay}" |
| 27 | + VerticalAlignment="{x:Bind LayoutVerticalAlignment, Mode=OneWay}" |
| 28 | + ItemSpacing="{x:Bind ItemSpacing, Mode=OneWay}" |
| 29 | + ItemsJustification="{x:Bind local:WrapPanel2MegaSample.ConvertStringToItemsJustification(LayoutItemsJustification), Mode=OneWay}" |
| 30 | + ItemsStretch="{x:Bind local:WrapPanel2MegaSample.ConvertStringToItemsStretch(LayoutItemsStretch), Mode=OneWay}" |
| 31 | + LineSpacing="{x:Bind LineSpacing, Mode=OneWay}" |
| 32 | + Orientation="{x:Bind local:WrapPanel2MegaSample.ConvertStringToOrientation(LayoutOrientation), Mode=OneWay}"> |
32 | 33 | <Border controls:WrapPanel2.LayoutLength="2*"> |
33 | | - <TextBlock HorizontalAlignment="Center" |
34 | | - Text="2*" /> |
| 34 | + <TextBlock HorizontalAlignment="Center" Text="2*" /> |
35 | 35 | </Border> |
36 | 36 | <Border controls:WrapPanel2.LayoutLength="Auto"> |
37 | | - <TextBlock HorizontalAlignment="Center" |
38 | | - Text="Auto" /> |
| 37 | + <TextBlock HorizontalAlignment="Center" Text="Auto" /> |
39 | 38 | </Border> |
40 | 39 | <Border controls:WrapPanel2.LayoutLength="400"> |
41 | | - <TextBlock HorizontalAlignment="Center" |
42 | | - Text="400px" /> |
| 40 | + <TextBlock HorizontalAlignment="Center" Text="400px" /> |
43 | 41 | </Border> |
44 | 42 | <Border controls:WrapPanel2.LayoutLength="1*"> |
45 | | - <TextBlock HorizontalAlignment="Center" |
46 | | - Text="1*" /> |
| 43 | + <TextBlock HorizontalAlignment="Center" Text="1*" /> |
47 | 44 | </Border> |
48 | 45 | <Border controls:WrapPanel2.LayoutLength="200"> |
49 | | - <TextBlock HorizontalAlignment="Center" |
50 | | - Text="200px" /> |
| 46 | + <TextBlock HorizontalAlignment="Center" Text="200px" /> |
51 | 47 | </Border> |
52 | 48 | <Border controls:WrapPanel2.LayoutLength="300"> |
53 | | - <TextBlock HorizontalAlignment="Center" |
54 | | - Text="300px" /> |
| 49 | + <TextBlock HorizontalAlignment="Center" Text="300px" /> |
55 | 50 | </Border> |
56 | 51 | <Border controls:WrapPanel2.LayoutLength="600"> |
57 | | - <TextBlock HorizontalAlignment="Center" |
58 | | - Text="600px" /> |
| 52 | + <TextBlock HorizontalAlignment="Center" Text="600px" /> |
59 | 53 | </Border> |
60 | 54 | <Border controls:WrapPanel2.LayoutLength="2*"> |
61 | | - <TextBlock HorizontalAlignment="Center" |
62 | | - Text="2*" /> |
| 55 | + <TextBlock HorizontalAlignment="Center" Text="2*" /> |
63 | 56 | </Border> |
64 | 57 | <Border controls:WrapPanel2.LayoutLength="1.5*"> |
65 | | - <TextBlock HorizontalAlignment="Center" |
66 | | - Text="1.5*" /> |
| 58 | + <TextBlock HorizontalAlignment="Center" Text="1.5*" /> |
67 | 59 | </Border> |
68 | 60 | <Border controls:WrapPanel2.LayoutLength="Auto"> |
69 | | - <TextBlock HorizontalAlignment="Center" |
70 | | - Text="Auto with longer text" /> |
| 61 | + <TextBlock HorizontalAlignment="Center" Text="Auto with longer text" /> |
71 | 62 | </Border> |
72 | 63 | <Border controls:WrapPanel2.LayoutLength="400"> |
73 | | - <TextBlock HorizontalAlignment="Center" |
74 | | - Text="400px" /> |
| 64 | + <TextBlock HorizontalAlignment="Center" Text="400px" /> |
75 | 65 | </Border> |
76 | 66 | <Border controls:WrapPanel2.LayoutLength="1*"> |
77 | | - <TextBlock HorizontalAlignment="Center" |
78 | | - Text="1*" /> |
| 67 | + <TextBlock HorizontalAlignment="Center" Text="1*" /> |
79 | 68 | </Border> |
80 | 69 | </controls:WrapPanel2> |
81 | 70 | </Grid> |
|
0 commit comments