Skip to content

Commit f02d885

Browse files
committed
Ran XAML styles
1 parent a05b71d commit f02d885

File tree

1 file changed

+48
-35
lines changed

1 file changed

+48
-35
lines changed

components/WrapPanel2/samples/WrapPanel2BasicSample.xaml

Lines changed: 48 additions & 35 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="WrapPanel2Experiment.Samples.WrapPanel2BasicSample"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@@ -10,60 +10,73 @@
1010

1111
<Page.Resources>
1212
<Style TargetType="Border">
13-
<Setter Property="Background" Value="#55000000"/>
14-
<Setter Property="BorderBrush" Value="#88000000"/>
15-
<Setter Property="CornerRadius" Value="8"/>
16-
<Setter Property="BorderThickness" Value="1"/>
17-
<Setter Property="Padding" Value="8"/>
18-
<Setter Property="HorizontalAlignment" Value="Stretch"/>
19-
<Setter Property="VerticalAlignment" Value="Stretch"/>
13+
<Setter Property="Background" Value="#55000000" />
14+
<Setter Property="BorderBrush" Value="#88000000" />
15+
<Setter Property="CornerRadius" Value="8" />
16+
<Setter Property="BorderThickness" Value="1" />
17+
<Setter Property="Padding" Value="8" />
18+
<Setter Property="HorizontalAlignment" Value="Stretch" />
19+
<Setter Property="VerticalAlignment" Value="Stretch" />
2020
</Style>
2121
</Page.Resources>
2222

23-
<Grid Margin="16" MaxHeight="600">
24-
<controls:WrapPanel2 Orientation="{x:Bind local:WrapPanel2BasicSample.ConvertStringToOrientation(LayoutOrientation), Mode=OneWay}"
25-
HorizontalSpacing="{x:Bind HorizontalSpacing, Mode=OneWay}"
26-
VerticalSpacing="{x:Bind VerticalSpacing, Mode=OneWay}"
27-
HorizontalAlignment="{x:Bind LayoutHorizontalAlignment, Mode=OneWay}"
28-
VerticalAlignment="{x:Bind LayoutVerticalAlignment, Mode=OneWay}"
29-
FixedRowLengths="{x:Bind FixedRowLengths, Mode=OneWay}"
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-
<TextBlock Text="2*" HorizontalAlignment="Center"/>
23+
<Grid MaxHeight="600"
24+
Margin="16">
25+
<controls:WrapPanel2 HorizontalAlignment="{x:Bind LayoutHorizontalAlignment, Mode=OneWay}"
26+
VerticalAlignment="{x:Bind LayoutVerticalAlignment, Mode=OneWay}"
27+
FixedRowLengths="{x:Bind FixedRowLengths, Mode=OneWay}"
28+
ForcedStretchMethod="{x:Bind local:WrapPanel2BasicSample.ConvertStringToForcedStretchMethod(LayoutForcedStretchMethod), Mode=OneWay}"
29+
HorizontalSpacing="{x:Bind HorizontalSpacing, Mode=OneWay}"
30+
Orientation="{x:Bind local:WrapPanel2BasicSample.ConvertStringToOrientation(LayoutOrientation), Mode=OneWay}"
31+
OverflowBehavior="{x:Bind local:WrapPanel2BasicSample.ConvertStringToOverflowBehavior(LayoutOverflowBehavior), Mode=OneWay}"
32+
VerticalSpacing="{x:Bind VerticalSpacing, Mode=OneWay}">
33+
<Border controls:WrapPanel2.LayoutLength="2*">
34+
<TextBlock HorizontalAlignment="Center"
35+
Text="2*" />
3436
</Border>
35-
<Border controls:WrapPanel2.LayoutLength="Auto" >
36-
<TextBlock Text="Auto" HorizontalAlignment="Center"/>
37+
<Border controls:WrapPanel2.LayoutLength="Auto">
38+
<TextBlock HorizontalAlignment="Center"
39+
Text="Auto" />
3740
</Border>
38-
<Border controls:WrapPanel2.LayoutLength="400" >
39-
<TextBlock Text="400px" HorizontalAlignment="Center"/>
41+
<Border controls:WrapPanel2.LayoutLength="400">
42+
<TextBlock HorizontalAlignment="Center"
43+
Text="400px" />
4044
</Border>
41-
<Border controls:WrapPanel2.LayoutLength="1*" >
42-
<TextBlock Text="1*" HorizontalAlignment="Center"/>
45+
<Border controls:WrapPanel2.LayoutLength="1*">
46+
<TextBlock HorizontalAlignment="Center"
47+
Text="1*" />
4348
</Border>
44-
<Border controls:WrapPanel2.LayoutLength="200" >
45-
<TextBlock Text="200px" HorizontalAlignment="Center"/>
49+
<Border controls:WrapPanel2.LayoutLength="200">
50+
<TextBlock HorizontalAlignment="Center"
51+
Text="200px" />
4652
</Border>
47-
<Border controls:WrapPanel2.LayoutLength="300" >
48-
<TextBlock Text="300px" HorizontalAlignment="Center"/>
53+
<Border controls:WrapPanel2.LayoutLength="300">
54+
<TextBlock HorizontalAlignment="Center"
55+
Text="300px" />
4956
</Border>
5057
<Border controls:WrapPanel2.LayoutLength="600">
51-
<TextBlock Text="600px" HorizontalAlignment="Center"/>
58+
<TextBlock HorizontalAlignment="Center"
59+
Text="600px" />
5260
</Border>
5361
<Border controls:WrapPanel2.LayoutLength="2*">
54-
<TextBlock Text="2*" HorizontalAlignment="Center"/>
62+
<TextBlock HorizontalAlignment="Center"
63+
Text="2*" />
5564
</Border>
5665
<Border controls:WrapPanel2.LayoutLength="1.5*">
57-
<TextBlock Text="1.5*" HorizontalAlignment="Center"/>
66+
<TextBlock HorizontalAlignment="Center"
67+
Text="1.5*" />
5868
</Border>
5969
<Border controls:WrapPanel2.LayoutLength="Auto">
60-
<TextBlock Text="Auto with longer text" HorizontalAlignment="Center"/>
70+
<TextBlock HorizontalAlignment="Center"
71+
Text="Auto with longer text" />
6172
</Border>
6273
<Border controls:WrapPanel2.LayoutLength="400">
63-
<TextBlock Text="400px" HorizontalAlignment="Center"/>
74+
<TextBlock HorizontalAlignment="Center"
75+
Text="400px" />
6476
</Border>
6577
<Border controls:WrapPanel2.LayoutLength="1*">
66-
<TextBlock Text="1*" HorizontalAlignment="Center"/>
78+
<TextBlock HorizontalAlignment="Center"
79+
Text="1*" />
6780
</Border>
6881
</controls:WrapPanel2>
6982
</Grid>

0 commit comments

Comments
 (0)