1: <Window x:Class="Scratch.Window1"
2: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4: Title="Window1" Height="300" Width="800">
5: <Window.Resources>
6: <SolidColorBrush x:Key="ProductNameBackgroundBrush" Color="#C0504D" />
7: <SolidColorBrush x:Key="SubjectAreaBackgroundBrush" Color="#D99795" />
8: <SolidColorBrush x:Key="ExceptionHeaderBackgroundBrush" Color="#E6B9B8" />
9: <SolidColorBrush x:Key="ExceptionCellBackgroundBrush" Color="#F2DDDC" />
10:
11: <Style x:Key="ProductNameStyle" TargetType="{x:Type Label}"> 12: <Setter Property="Background" Value="{StaticResource ProductNameBackgroundBrush}" /> 13: <Setter Property="FontFamily" Value="Trebuchet MS" />
14: <Setter Property="FontWeight" Value="Bold" />
15: <Setter Property="FontSize" Value="15" />
16: <Setter Property="BorderBrush" Value="Black" />
17: <Setter Property="BorderThickness" Value="1" />
18: <Setter Property="Padding" Value="3,6,0,6" />
19: </Style>
20: <Style x:Key="SubjectAreaStyle" TargetType="{x:Type Label}"> 21: <Setter Property="Background" Value="{StaticResource SubjectAreaBackgroundBrush}" /> 22: <Setter Property="FontFamily" Value="Trebuchet MS" />
23: <Setter Property="FontWeight" Value="Bold" />
24: <Setter Property="FontSize" Value="15" />
25: <Setter Property="BorderBrush" Value="Black" />
26: <Setter Property="BorderThickness" Value="1" />
27: <Setter Property="Padding" Value="3,6,0,6" />
28: </Style>
29: <Style x:Key="ExceptionHeaderStyle" TargetType="{x:Type Label}"> 30: <Setter Property="Background" Value="{StaticResource ExceptionHeaderBackgroundBrush}" /> 31: <Setter Property="FontFamily" Value="Trebuchet MS" />
32: <Setter Property="FontWeight" Value="Bold" />
33: <Setter Property="FontSize" Value="15" />
34: <Setter Property="BorderBrush" Value="Black" />
35: <Setter Property="BorderThickness" Value="1" />
36: <Setter Property="Padding" Value="3,6,0,6" />
37: </Style>
38: <Style x:Key="ExceptionCellStyle" TargetType="{x:Type Label}"> 39: <Setter Property="Background" Value="{StaticResource ExceptionCellBackgroundBrush}" /> 40: <Setter Property="FontFamily" Value="Trebuchet MS" />
41: <Setter Property="FontWeight" Value="Normal" />
42: <Setter Property="FontSize" Value="12" />
43: <Setter Property="BorderBrush" Value="Black" />
44: <Setter Property="BorderThickness" Value="1" />
45: <Setter Property="Padding" Value="3,6,0,6" />
46: </Style>
47:
48: </Window.Resources>
49: <Grid Width="700">
50: <Grid Background="LightYellow">
51: <Grid.RowDefinitions>
52: <RowDefinition Height="30" />
53: <RowDefinition Height="30"/>
54: <RowDefinition Height="Auto"/>
55: <RowDefinition Height="Auto"/>
56: <RowDefinition Height="Auto"/>
57: <RowDefinition Height="Auto"/>
58: </Grid.RowDefinitions>
59: <Grid.ColumnDefinitions>
60: <ColumnDefinition />
61: <ColumnDefinition />
62: <ColumnDefinition />
63: </Grid.ColumnDefinitions>
64: <!-- Row 0-->
65: <Label Grid.ColumnSpan="3" Grid.Row="0" Style="{StaticResource ProductNameStyle}" Margin="0,0,0,0">Product Name : Product 1</Label> 66:
67: <!-- Row 1-->
68: <Label Grid.ColumnSpan="3" Grid.Row="1" Style="{StaticResource SubjectAreaStyle}" Margin="0,1,0,0">Subject Area : Area 1</Label> 69:
70: <!-- Row 2-->
71: <Label Grid.Column="0" Grid.Row="2" Style="{StaticResource ExceptionHeaderStyle}" Margin="0,1,0,0">UI Field</Label> 72: <Label Grid.Column="1" Grid.Row="2" Style="{StaticResource ExceptionHeaderStyle}" Margin="1,1,0,0">Exception</Label> 73: <Label Grid.Column="2" Grid.Row="2" Style="{StaticResource ExceptionHeaderStyle}" Margin="1,1,0,0">Action</Label> 74:
75: <!-- Row 3-->
76: <Label Grid.Column="0" Grid.Row="3" Style="{StaticResource ExceptionCellStyle}" Margin="0,1,0,0">Field 1</Label> 77: <Label Grid.Column="1" Grid.Row="3" Style="{StaticResource ExceptionCellStyle}" Margin="1,1,0,0">Missing Data</Label> 78: <Label Grid.Column="2" Grid.Row="3" Style="{StaticResource ExceptionCellStyle}" Margin="1,1,0,0">Enter information</Label> 79:
80: <!-- Row 4-->
81: <Label Grid.Column="0" Grid.Row="4" Style="{StaticResource ExceptionCellStyle}" Margin="0,1,0,0">Field 2</Label> 82: <Label Grid.Column="1" Grid.Row="4" Style="{StaticResource ExceptionCellStyle}" Margin="1,1,0,0">Missing Data</Label> 83: <Label Grid.Column="2" Grid.Row="4" Style="{StaticResource ExceptionCellStyle}" Margin="1,1,0,0">Enter information</Label> 84:
85: <!-- Row 5-->
86: <Label Grid.Column="0" Grid.Row="5" Style="{StaticResource ExceptionCellStyle}" Margin="0,1,0,0">Field 3</Label> 87: <Label Grid.Column="1" Grid.Row="5" Style="{StaticResource ExceptionCellStyle}" Margin="1,1,0,0">Missing Data</Label> 88: <Label Grid.Column="2" Grid.Row="5" Style="{StaticResource ExceptionCellStyle}" Margin="1,1,0,0">Enter information</Label> 89:
90: </Grid>
91: </Grid>
92: </Window>