跟新颜色配置
This commit is contained in:
1 parent
45829fa267
commit
d5232c581c
7 files changed
+66
-10
No files matched your search
@@ -124,7 +124,7 @@ public partial class DataGridEx : DataGrid
|
||||
public bool? AreAllRowsSelected => (bool?)GetValue(AreAllRowsSelectedProperty);
|
||||
public static readonly DependencyProperty SelectedRowBackgroundProperty = DependencyProperty.Register(
|
||||
nameof(SelectedRowBackground), typeof(Brush), typeof(DataGridEx),
|
||||
new PropertyMetadata((Brush)new BrushConverter().ConvertFromString("#F3EAF1")!));
|
||||
new PropertyMetadata(Brushes.LightGray));
|
||||
public static readonly DependencyProperty SelectedRowForegroundProperty = DependencyProperty.Register(
|
||||
nameof(SelectedRowForeground), typeof(Brush), typeof(DataGridEx), new PropertyMetadata(Brushes.Black));
|
||||
public static readonly DependencyProperty ShowCheckBoxProperty = DependencyProperty.Register(
|
||||
|
||||
@@ -1006,7 +1006,7 @@
|
||||
<Setter Property="HorizontalContentAlignment" Value="Right" />
|
||||
</Style>
|
||||
|
||||
<Style BasedOn="{StaticResource DataGridExDefaultDataGridStyle}" TargetType="local:DataGridEx">
|
||||
<Style x:Key="DataGridExBaseStyle" BasedOn="{StaticResource DataGridExDefaultDataGridStyle}" TargetType="local:DataGridEx">
|
||||
<Setter Property="EnableRowVirtualization" Value="True" />
|
||||
<Setter Property="EnableColumnVirtualization" Value="True" />
|
||||
<Setter Property="VirtualizingPanel.IsVirtualizing" Value="True" />
|
||||
@@ -1020,4 +1020,5 @@
|
||||
<Setter Property="RowHeaderStyle" Value="{StaticResource DataGridExRowHeaderStyle}" />
|
||||
</Style>
|
||||
|
||||
<Style BasedOn="{StaticResource DataGridExBaseStyle}" TargetType="local:DataGridEx" />
|
||||
</ResourceDictionary>
|
||||
Reference in new issue
Block a user