38 lines
1.7 KiB
XML
38 lines
1.7 KiB
XML
<Grid x:Class="InspectionUI.ItemsGrid"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:VM="clr-namespace:InspectionUI.ViewModels">
|
|
<Grid.Resources>
|
|
<DataTemplate DataType="{x:Type VM:ItemsGridHeaderVM}">
|
|
<Label Background="WhiteSmoke"
|
|
BorderBrush="White"
|
|
BorderThickness="0, 1, 1, 0"
|
|
Content="{Binding Value}"
|
|
FontFamily="Consolas"
|
|
FontSize="14"
|
|
FontWeight="Bold"
|
|
HorizontalAlignment="Stretch"
|
|
HorizontalContentAlignment="{Binding HorisontalContentAlignment}"
|
|
Margin="0"
|
|
Padding="3, 5"
|
|
VerticalAlignment="Stretch"
|
|
VerticalContentAlignment="Center"/>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type VM:ItemsGridCellVM}">
|
|
<Label Background="{Binding Background, TargetNullValue={x:Static SystemColors.WindowBrush}}"
|
|
BorderBrush="WhiteSmoke"
|
|
BorderThickness="0, 1, 1, 0"
|
|
Content="{Binding Value}"
|
|
FontFamily="Consolas"
|
|
FontSize="14"
|
|
Foreground="{Binding Foreground, TargetNullValue={x:Static SystemColors.ControlTextBrush}}"
|
|
HorizontalAlignment="Stretch"
|
|
HorizontalContentAlignment="{Binding HorisontalContentAlignment}"
|
|
Margin="0"
|
|
Padding="3, 5"
|
|
VerticalAlignment="Stretch"
|
|
VerticalContentAlignment="Center" />
|
|
</DataTemplate>
|
|
</Grid.Resources>
|
|
</Grid>
|