Skip to content

Commit 8d64ee6

Browse files
committed
Applied XAML styles
1 parent f3fe793 commit 8d64ee6

File tree

1 file changed

+29
-24
lines changed

1 file changed

+29
-24
lines changed

components/WrapPanel2/samples/WrapPanel2ProportionalSample.xaml

Lines changed: 29 additions & 24 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.WrapPanel2ProportionalSample"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@@ -8,8 +8,12 @@
88
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
99
mc:Ignorable="d">
1010

11-
<Border CornerRadius="8" Padding="2" BorderBrush="Black" Background="Black"
12-
VerticalAlignment="Top" HorizontalAlignment="Stretch">
11+
<Border Padding="2"
12+
HorizontalAlignment="Stretch"
13+
VerticalAlignment="Top"
14+
Background="Black"
15+
BorderBrush="Black"
16+
CornerRadius="8">
1317
<Border.Resources>
1418
<Style TargetType="Border">
1519
<Setter Property="CornerRadius" Value="4" />
@@ -20,30 +24,31 @@
2024
</Style>
2125
</Border.Resources>
2226

23-
<controls:WrapPanel2 ItemSpacing="2" HorizontalAlignment="Stretch">
24-
<Border Background="#A7FA95"
25-
controls:WrapPanel2.LayoutLength="6*">
26-
<TextBlock Text="OP Code (6 bits)"
27-
Foreground="Black"
28-
HorizontalAlignment="Center"/>
27+
<controls:WrapPanel2 HorizontalAlignment="Stretch"
28+
ItemSpacing="2">
29+
<Border controls:WrapPanel2.LayoutLength="6*"
30+
Background="#A7FA95">
31+
<TextBlock HorizontalAlignment="Center"
32+
Foreground="Black"
33+
Text="OP Code (6 bits)" />
2934
</Border>
30-
<Border Background="#FE8482"
31-
controls:WrapPanel2.LayoutLength="5*">
32-
<TextBlock Text="RS (5 bits)"
33-
Foreground="Black"
34-
HorizontalAlignment="Center"/>
35+
<Border controls:WrapPanel2.LayoutLength="5*"
36+
Background="#FE8482">
37+
<TextBlock HorizontalAlignment="Center"
38+
Foreground="Black"
39+
Text="RS (5 bits)" />
3540
</Border>
36-
<Border Background="#FE8482"
37-
controls:WrapPanel2.LayoutLength="5*">
38-
<TextBlock Text="RS (5 bits)"
39-
Foreground="Black"
40-
HorizontalAlignment="Center"/>
41+
<Border controls:WrapPanel2.LayoutLength="5*"
42+
Background="#FE8482">
43+
<TextBlock HorizontalAlignment="Center"
44+
Foreground="Black"
45+
Text="RS (5 bits)" />
4146
</Border>
42-
<Border Background="#F8FC8B"
43-
controls:WrapPanel2.LayoutLength="16*">
44-
<TextBlock Text="Immediate (16 bits)"
45-
Foreground="Black"
46-
HorizontalAlignment="Center"/>
47+
<Border controls:WrapPanel2.LayoutLength="16*"
48+
Background="#F8FC8B">
49+
<TextBlock HorizontalAlignment="Center"
50+
Foreground="Black"
51+
Text="Immediate (16 bits)" />
4752
</Border>
4853
</controls:WrapPanel2>
4954
</Border>

0 commit comments

Comments
 (0)