84 lines
3.6 KiB
XML
84 lines
3.6 KiB
XML
<Window x:Class="CheckersSpielBot.HistoryDialog"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="Game History" Height="450" Width="700"
|
|
WindowStartupLocation="CenterScreen"
|
|
ResizeMode="NoResize"
|
|
Background="#222">
|
|
|
|
<Grid Margin="20">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="14"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Row="0"
|
|
Text="Your Game History"
|
|
Foreground="White"
|
|
FontSize="20"
|
|
FontWeight="Bold"
|
|
HorizontalAlignment="Center"/>
|
|
|
|
<DataGrid Grid.Row="2"
|
|
x:Name="HistoryGrid"
|
|
AutoGenerateColumns="False"
|
|
IsReadOnly="True"
|
|
Background="#2A2A2A"
|
|
Foreground="White"
|
|
BorderBrush="#444"
|
|
RowBackground="#2A2A2A"
|
|
AlternatingRowBackground="#333"
|
|
GridLinesVisibility="Horizontal"
|
|
HorizontalGridLinesBrush="#444"
|
|
HeadersVisibility="Column"
|
|
CanUserResizeRows="False"
|
|
SelectionMode="Single">
|
|
|
|
<DataGrid.ColumnHeaderStyle>
|
|
<Style TargetType="DataGridColumnHeader">
|
|
<Setter Property="Background" Value="#333"/>
|
|
<Setter Property="Foreground" Value="#CCC"/>
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
|
<Setter Property="Padding" Value="8,6"/>
|
|
<Setter Property="BorderBrush" Value="#444"/>
|
|
<Setter Property="BorderThickness" Value="0,0,0,1"/>
|
|
</Style>
|
|
</DataGrid.ColumnHeaderStyle>
|
|
|
|
<DataGrid.CellStyle>
|
|
<Style TargetType="DataGridCell">
|
|
<Setter Property="Padding" Value="8,4"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="Background" Value="#444"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</DataGrid.CellStyle>
|
|
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn Header="# "
|
|
Binding="{Binding Id}"
|
|
Width="50"/>
|
|
<DataGridTextColumn Header="Started"
|
|
Binding="{Binding StartedAt, StringFormat='{}{0:dd.MM.yyyy HH:mm}'}"
|
|
Width="140"/>
|
|
<DataGridTextColumn Header="Ended"
|
|
Binding="{Binding EndedAt, StringFormat='{}{0:dd.MM.yyyy HH:mm}'}"
|
|
Width="140"/>
|
|
<DataGridTextColumn Header="Duration"
|
|
Binding="{Binding Duration}"
|
|
Width="90"/>
|
|
<DataGridTextColumn Header="Went First"
|
|
Binding="{Binding WentFirst}"
|
|
Width="100"/>
|
|
<DataGridTextColumn Header="Winner"
|
|
Binding="{Binding Winner}"
|
|
Width="*"/>
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
</Grid>
|
|
</Window> |