|
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="WrapPanel2Experiment.Samples.WrapPanel2ProportionalSample" |
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
8 | 8 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
9 | 9 | mc:Ignorable="d"> |
10 | 10 |
|
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"> |
13 | 17 | <Border.Resources> |
14 | 18 | <Style TargetType="Border"> |
15 | 19 | <Setter Property="CornerRadius" Value="4" /> |
|
20 | 24 | </Style> |
21 | 25 | </Border.Resources> |
22 | 26 |
|
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)" /> |
29 | 34 | </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)" /> |
35 | 40 | </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)" /> |
41 | 46 | </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)" /> |
47 | 52 | </Border> |
48 | 53 | </controls:WrapPanel2> |
49 | 54 | </Border> |
|
0 commit comments