|
18 | 18 | </LinearGradientBrush> |
19 | 19 | <SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black" /> |
20 | 20 | <SolidColorBrush x:Key="{x:Static SystemColors.ControlTextBrushKey}" Color="Black" /> |
21 | | - |
| 21 | + |
22 | 22 | <Style x:Key="PrettifyRow" TargetType="{x:Type DataGridRow}"> |
23 | 23 | <Style.Resources> |
24 | 24 | <Style TargetType="{x:Type Border}"> |
|
52 | 52 | </MultiTrigger> |
53 | 53 | </Style.Triggers> |
54 | 54 | </Style> |
55 | | - <SolidColorBrush x:Key="ToolBarHorizontalBackground" Color="#FFEEF5FD"/> |
56 | | - <SolidColorBrush x:Key="ToolBarToggleButtonVerticalBackground" Color="#FFEEF5FD"/> |
57 | | - <SolidColorBrush x:Key="ToolBarButtonHover" Color="#210080FF"/> |
58 | | - <SolidColorBrush x:Key="ToolBarGripper" Color="#FF6D6D6D"/> |
59 | | - <Style x:Key="ToolBarVerticalOverflowButtonStyle" TargetType="{x:Type ToggleButton}"> |
60 | | - <Setter Property="Background" Value="{StaticResource ToolBarToggleButtonVerticalBackground}"/> |
61 | | - <Setter Property="MinHeight" Value="0"/> |
62 | | - <Setter Property="MinWidth" Value="0"/> |
63 | | - <Setter Property="Template"> |
64 | | - <Setter.Value> |
65 | | - <ControlTemplate TargetType="{x:Type ToggleButton}"> |
66 | | - <Border x:Name="Bd" SnapsToDevicePixels="true" CornerRadius="0,0,3,3" Background="{TemplateBinding Background}"> |
67 | | - <Canvas Width="7" VerticalAlignment="Bottom" SnapsToDevicePixels="true" Margin="2,7,2,2" Height="6" HorizontalAlignment="Right"> |
68 | | - <Path Data="M 1.5 1 L 1.5 6" Stroke="White"/> |
69 | | - <Path Data="M 0.5 0 L 0.5 5" Stroke="{TemplateBinding Foreground}"/> |
70 | | - <Path Data="M 3.5 0.5 L 7 3.5 L 4 6.5 Z" Fill="White"/> |
71 | | - <Path Data="M 3 -0.5 L 6 2.5 L 3 5.5 Z" Fill="{TemplateBinding Foreground}"/> |
72 | | - </Canvas> |
73 | | - </Border> |
74 | | - <ControlTemplate.Triggers> |
75 | | - <Trigger Property="IsMouseOver" Value="true"> |
76 | | - <Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/> |
77 | | - </Trigger> |
78 | | - <Trigger Property="IsKeyboardFocused" Value="true"> |
79 | | - <Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/> |
80 | | - </Trigger> |
81 | | - <Trigger Property="IsEnabled" Value="false"> |
82 | | - <Setter Property="Foreground" Value="{StaticResource ToolBarGripper}"/> |
83 | | - </Trigger> |
84 | | - </ControlTemplate.Triggers> |
85 | | - </ControlTemplate> |
86 | | - </Setter.Value> |
87 | | - </Setter> |
88 | | - <Style.Triggers> |
89 | | - <DataTrigger Binding="{Binding Source={x:Static SystemParameters.HighContrast}}" Value="true"> |
90 | | - <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
91 | | - </DataTrigger> |
92 | | - </Style.Triggers> |
93 | | - </Style> |
94 | | - <SolidColorBrush x:Key="ToolBarVerticalBackground" Color="#FFEEF5FD"/> |
95 | | - <SolidColorBrush x:Key="ToolBarToggleButtonHorizontalBackground" Color="#FFEEF5FD"/> |
96 | | - <Style x:Key="ToolBarHorizontalOverflowButtonStyle" TargetType="{x:Type ToggleButton}"> |
97 | | - <Setter Property="Background" Value="{StaticResource ToolBarToggleButtonHorizontalBackground}"/> |
98 | | - <Setter Property="MinHeight" Value="0"/> |
99 | | - <Setter Property="MinWidth" Value="0"/> |
100 | | - <Setter Property="Template"> |
101 | | - <Setter.Value> |
102 | | - <ControlTemplate TargetType="{x:Type ToggleButton}"> |
103 | | - <Border x:Name="Bd" SnapsToDevicePixels="true" CornerRadius="0,3,3,0" Background="{TemplateBinding Background}"> |
104 | | - <Canvas Width="6" VerticalAlignment="Bottom" SnapsToDevicePixels="true" Margin="7,2,2,2" Height="7" HorizontalAlignment="Right"> |
105 | | - <Path Data="M 1 1.5 L 6 1.5" Stroke="White"/> |
106 | | - <Path Data="M 0 0.5 L 5 0.5" Stroke="{TemplateBinding Foreground}"/> |
107 | | - <Path Data="M 0.5 4 L 6.5 4 L 3.5 7 Z" Fill="White"/> |
108 | | - <Path Data="M -0.5 3 L 5.5 3 L 2.5 6 Z" Fill="{TemplateBinding Foreground}"/> |
109 | | - </Canvas> |
110 | | - </Border> |
111 | | - <ControlTemplate.Triggers> |
112 | | - <Trigger Property="IsMouseOver" Value="true"> |
113 | | - <Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/> |
114 | | - </Trigger> |
115 | | - <Trigger Property="IsKeyboardFocused" Value="true"> |
116 | | - <Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/> |
117 | | - </Trigger> |
118 | | - <Trigger Property="IsEnabled" Value="false"> |
119 | | - <Setter Property="Foreground" Value="{StaticResource ToolBarGripper}"/> |
120 | | - </Trigger> |
121 | | - </ControlTemplate.Triggers> |
122 | | - </ControlTemplate> |
123 | | - </Setter.Value> |
124 | | - </Setter> |
125 | | - <Style.Triggers> |
126 | | - <DataTrigger Binding="{Binding Source={x:Static SystemParameters.HighContrast}}" Value="true"> |
127 | | - <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
128 | | - </DataTrigger> |
129 | | - </Style.Triggers> |
130 | | - </Style> |
131 | 55 |
|
132 | 56 | <Style TargetType="{x:Type DataGridColumnHeadersPresenter}"> |
133 | 57 | <Setter Property="Margin" Value="25,0,0,0" /> |
|
191 | 115 | <Setter Property="Background" Value="Transparent" /> |
192 | 116 | <Setter Property="Padding" Value="0" /> |
193 | 117 | <Setter Property="VerticalContentAlignment" Value="Stretch" /> |
| 118 | + <Setter Property="VerticalAlignment" Value="Center" /> |
194 | 119 | </Style> |
195 | 120 | </DataGrid.CellStyle> |
196 | 121 | </DataGrid> |
0 commit comments