|
1 | 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="StretchPanelExperiment.Samples.StretchPanelBasicSample" |
| 2 | +<Page x:Class="WrapPanel2Experiment.Samples.WrapPanel2BasicSample" |
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 | 5 | xmlns:controls="using:CommunityToolkit.WinUI.Controls" |
6 | 6 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
7 | | - xmlns:local="using:StretchPanelExperiment.Samples" |
| 7 | + xmlns:local="using:WrapPanel2Experiment.Samples" |
8 | 8 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
9 | 9 | mc:Ignorable="d"> |
10 | 10 |
|
|
21 | 21 | </Page.Resources> |
22 | 22 |
|
23 | 23 | <Grid Margin="16" MaxHeight="600"> |
24 | | - <controls:StretchPanel Orientation="{x:Bind local:StretchPanelBasicSample.ConvertStringToOrientation(LayoutOrientation), Mode=OneWay}" |
| 24 | + <controls:WrapPanel2 Orientation="{x:Bind local:WrapPanel2BasicSample.ConvertStringToOrientation(LayoutOrientation), Mode=OneWay}" |
25 | 25 | HorizontalSpacing="{x:Bind HorizontalSpacing, Mode=OneWay}" |
26 | 26 | VerticalSpacing="{x:Bind VerticalSpacing, Mode=OneWay}" |
27 | 27 | HorizontalAlignment="{x:Bind LayoutHorizontalAlignment, Mode=OneWay}" |
28 | 28 | VerticalAlignment="{x:Bind LayoutVerticalAlignment, Mode=OneWay}" |
29 | 29 | FixedRowLengths="{x:Bind FixedRowLengths, Mode=OneWay}" |
30 | | - ForcedStretchMethod="{x:Bind local:StretchPanelBasicSample.ConvertStringToForcedStretchMethod(LayoutForcedStretchMethod), Mode=OneWay}" |
31 | | - OverflowBehavior="{x:Bind local:StretchPanelBasicSample.ConvertStringToOverflowBehavior(LayoutOverflowBehavior), Mode=OneWay}"> |
32 | | - <Border controls:StretchPanel.LayoutLength="2*" > |
| 30 | + ForcedStretchMethod="{x:Bind local:WrapPanel2BasicSample.ConvertStringToForcedStretchMethod(LayoutForcedStretchMethod), Mode=OneWay}" |
| 31 | + OverflowBehavior="{x:Bind local:WrapPanel2BasicSample.ConvertStringToOverflowBehavior(LayoutOverflowBehavior), Mode=OneWay}"> |
| 32 | + <Border controls:WrapPanel2.LayoutLength="2*" > |
33 | 33 | <TextBlock Text="2*" HorizontalAlignment="Center"/> |
34 | 34 | </Border> |
35 | | - <Border controls:StretchPanel.LayoutLength="Auto" > |
| 35 | + <Border controls:WrapPanel2.LayoutLength="Auto" > |
36 | 36 | <TextBlock Text="Auto" HorizontalAlignment="Center"/> |
37 | 37 | </Border> |
38 | | - <Border controls:StretchPanel.LayoutLength="400" > |
| 38 | + <Border controls:WrapPanel2.LayoutLength="400" > |
39 | 39 | <TextBlock Text="400px" HorizontalAlignment="Center"/> |
40 | 40 | </Border> |
41 | | - <Border controls:StretchPanel.LayoutLength="1*" > |
| 41 | + <Border controls:WrapPanel2.LayoutLength="1*" > |
42 | 42 | <TextBlock Text="1*" HorizontalAlignment="Center"/> |
43 | 43 | </Border> |
44 | | - <Border controls:StretchPanel.LayoutLength="200" > |
| 44 | + <Border controls:WrapPanel2.LayoutLength="200" > |
45 | 45 | <TextBlock Text="200px" HorizontalAlignment="Center"/> |
46 | 46 | </Border> |
47 | | - <Border controls:StretchPanel.LayoutLength="300" > |
| 47 | + <Border controls:WrapPanel2.LayoutLength="300" > |
48 | 48 | <TextBlock Text="300px" HorizontalAlignment="Center"/> |
49 | 49 | </Border> |
50 | | - <Border controls:StretchPanel.LayoutLength="600"> |
| 50 | + <Border controls:WrapPanel2.LayoutLength="600"> |
51 | 51 | <TextBlock Text="600px" HorizontalAlignment="Center"/> |
52 | 52 | </Border> |
53 | | - <Border controls:StretchPanel.LayoutLength="2*"> |
| 53 | + <Border controls:WrapPanel2.LayoutLength="2*"> |
54 | 54 | <TextBlock Text="2*" HorizontalAlignment="Center"/> |
55 | 55 | </Border> |
56 | | - <Border controls:StretchPanel.LayoutLength="1.5*"> |
| 56 | + <Border controls:WrapPanel2.LayoutLength="1.5*"> |
57 | 57 | <TextBlock Text="1.5*" HorizontalAlignment="Center"/> |
58 | 58 | </Border> |
59 | | - <Border controls:StretchPanel.LayoutLength="Auto"> |
| 59 | + <Border controls:WrapPanel2.LayoutLength="Auto"> |
60 | 60 | <TextBlock Text="Auto with longer text" HorizontalAlignment="Center"/> |
61 | 61 | </Border> |
62 | | - <Border controls:StretchPanel.LayoutLength="400"> |
| 62 | + <Border controls:WrapPanel2.LayoutLength="400"> |
63 | 63 | <TextBlock Text="400px" HorizontalAlignment="Center"/> |
64 | 64 | </Border> |
65 | | - <Border controls:StretchPanel.LayoutLength="1*"> |
| 65 | + <Border controls:WrapPanel2.LayoutLength="1*"> |
66 | 66 | <TextBlock Text="1*" HorizontalAlignment="Center"/> |
67 | 67 | </Border> |
68 | | - </controls:StretchPanel> |
| 68 | + </controls:WrapPanel2> |
69 | 69 | </Grid> |
70 | 70 | </Page> |
0 commit comments