跟新颜色配置

This commit is contained in:
chfei committed 2026-11-16 10:34:33 +08:00
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>
@@ -43,8 +43,8 @@
<Color x:Key="DarkMaskColor">#20000000</Color>
<Color x:Key="DarkOpacityColor">#40000000</Color>
<SolidColorBrush x:Key="TreeViewItemSelectedBrush" Color="#F3EAF1" />
<SolidColorBrush x:Key="TreeViewItemSelectedBrush2" Color="#784B70" />
<SolidColorBrush x:Key="SelectedBackgroundBrush" Color="#F3EAF1" />
<SolidColorBrush x:Key="SelectedForegroundBrush" Color="#784B70" />
<Color x:Key="BackgrondColor1">#F7F8F9</Color>
<Color x:Key="BackgrondColor2">#F0F2F4</Color>
@@ -12,9 +12,13 @@
<ResourceDictionary Source="pack://application:,,,/MAX.Common.WPF;component/Resources/Generic.xaml" />
<ResourceDictionary Source="/Store.Management.Framework;component/Controls/DataGridEx/DataGridEx.xaml" />
</ResourceDictionary.MergedDictionaries>
<FontFamily x:Key="IconPack">Fonts/iconfont.ttf#iconfont</FontFamily>
<Style BasedOn="{StaticResource DataGridExBaseStyle}" TargetType="{x:Type f:DataGridEx}">
<Setter Property="SelectedRowBackground" Value="{DynamicResource SelectedBackgroundBrush}" />
<Setter Property="SelectedRowForeground" Value="{DynamicResource SelectedForegroundBrush}" />
</Style>
<Style x:Key="TextBlockIcon" TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily" Value="{StaticResource IconPack}" />
<Setter Property="HorizontalAlignment" Value="Center" />
@@ -23,6 +27,14 @@
</Style>
<Style BasedOn="{StaticResource TextBlockIcon}" TargetType="{x:Type f:IconText}" />
<Style BasedOn="{StaticResource {x:Type MenuItem}}" TargetType="{x:Type MenuItem}">
<Setter Property="Width" Value="200" />
<Style.Resources>
<Style BasedOn="{StaticResource TextBlockIcon}" TargetType="{x:Type f:IconText}">
<Setter Property="FontSize" Value="16" />
</Style>
</Style.Resources>
</Style>
<Style
x:Key="WindowBase"
BasedOn="{StaticResource WindowWin10}"