|
@ -279,4 +279,78 @@ |
|
|
<Setter Property="HorizontalAlignment" Value="Center"/> |
|
|
<Setter Property="HorizontalAlignment" Value="Center"/> |
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
</Style> |
|
|
</Style> |
|
|
|
|
|
|
|
|
|
|
|
<Style TargetType="DataGrid"> |
|
|
|
|
|
<Setter Property="AutoGenerateColumns" Value="False"/> |
|
|
|
|
|
<Setter Property="IsReadOnly" Value="True"/> |
|
|
|
|
|
<Setter Property="RowHeaderWidth" Value="0"/> |
|
|
|
|
|
<Setter Property="ColumnHeaderHeight" Value="30"/> |
|
|
|
|
|
<Setter Property="RowHeight" Value="30"/> |
|
|
|
|
|
<Setter Property="CanUserAddRows" Value="False"/> |
|
|
|
|
|
<Setter Property="CanUserDeleteRows" Value="False"/> |
|
|
|
|
|
<Setter Property="CanUserResizeRows" Value="False"/> |
|
|
|
|
|
<Setter Property="CanUserSortColumns" Value="False"/> |
|
|
|
|
|
<Setter Property="BorderBrush" Value="#E3F3FF"/> |
|
|
|
|
|
<Setter Property="Background" Value="Transparent"/> |
|
|
|
|
|
<Setter Property="BorderThickness" Value="0"/> |
|
|
|
|
|
<Setter Property="HorizontalGridLinesBrush" Value="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Setter Property="VerticalGridLinesBrush" Value="{StaticResource Border.Brush}"/> |
|
|
|
|
|
</Style> |
|
|
|
|
|
|
|
|
|
|
|
<Style TargetType="DataGridRow"> |
|
|
|
|
|
<Setter Property="Background" Value="Transparent"/> |
|
|
|
|
|
<Style.Triggers> |
|
|
|
|
|
<Trigger Property="IsSelected" Value="True"> |
|
|
|
|
|
<Setter Property="Background" Value="{StaticResource Item.Selected}"/> |
|
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource Text.Color}"/> |
|
|
|
|
|
</Trigger> |
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True"> |
|
|
|
|
|
<Setter Property="Background" Value="{StaticResource Item.MouseOver}"/> |
|
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource Text.Color}"/> |
|
|
|
|
|
</Trigger> |
|
|
|
|
|
</Style.Triggers> |
|
|
|
|
|
</Style> |
|
|
|
|
|
|
|
|
|
|
|
<Style TargetType="DataGridCell"> |
|
|
|
|
|
<Setter Property="Background" Value="Transparent"/> |
|
|
|
|
|
<Setter Property="Margin" Value="0"/> |
|
|
|
|
|
<Setter Property="Padding" Value="0"/> |
|
|
|
|
|
<Style.Triggers> |
|
|
|
|
|
<Trigger Property="IsSelected" Value="True"> |
|
|
|
|
|
<Setter Property="Background" Value="{StaticResource Item.Selected}"/> |
|
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource Text.Color}"/> |
|
|
|
|
|
<Setter Property="BorderThickness" Value="0"/> |
|
|
|
|
|
</Trigger> |
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True"> |
|
|
|
|
|
<Setter Property="Background" Value="{StaticResource Item.MouseOver}"/> |
|
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource Text.Color}"/> |
|
|
|
|
|
</Trigger> |
|
|
|
|
|
</Style.Triggers> |
|
|
|
|
|
</Style> |
|
|
|
|
|
|
|
|
|
|
|
<Style x:Key="ColumnHeaderStyle_Center" TargetType="DataGridColumnHeader"> |
|
|
|
|
|
<Setter Property="SnapsToDevicePixels" Value="True" /> |
|
|
|
|
|
<Setter Property="BorderThickness" Value="0,0,1,0"/> |
|
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Setter Property="Template"> |
|
|
|
|
|
<Setter.Value> |
|
|
|
|
|
<ControlTemplate TargetType="DataGridColumnHeader"> |
|
|
|
|
|
<Border x:Name="BackgroundBorder" |
|
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}" |
|
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}" |
|
|
|
|
|
Background="{TemplateBinding Background}" |
|
|
|
|
|
Width="{TemplateBinding Width}"> |
|
|
|
|
|
<Grid > |
|
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
|
<ColumnDefinition Width="*" /> |
|
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
<ContentPresenter Margin="0" VerticalAlignment="Center" HorizontalAlignment="Center"/> |
|
|
|
|
|
<Path x:Name="SortArrow" Visibility="Collapsed" Data="M0,0 L1,0 0.5,1 z" Stretch="Fill" Grid.Column="2" Width="8" Height="6" Fill="White" Margin="0,0,50,0" |
|
|
|
|
|
VerticalAlignment="Center" RenderTransformOrigin="1,1" /> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
</Border> |
|
|
|
|
|
</ControlTemplate> |
|
|
|
|
|
</Setter.Value> |
|
|
|
|
|
</Setter> |
|
|
|
|
|
</Style> |
|
|
</ResourceDictionary> |
|
|
</ResourceDictionary> |