ux: reduce datagride column header height

This commit is contained in:
leo 2024-07-09 19:15:02 +08:00
parent c94f5877e3
commit 7febac5843
No known key found for this signature in database

View file

@ -24,7 +24,7 @@
HeadersVisibility="Column" HeadersVisibility="Column"
Focusable="False" Focusable="False"
RowHeight="28" RowHeight="28"
ColumnHeaderHeight="28" ColumnHeaderHeight="24"
HorizontalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Disabled"
VerticalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"
LayoutUpdated="OnCommitDataGridLayoutUpdated" LayoutUpdated="OnCommitDataGridLayoutUpdated"
@ -32,7 +32,7 @@
ContextRequested="OnCommitDataGridContextRequested"> ContextRequested="OnCommitDataGridContextRequested">
<DataGrid.Styles> <DataGrid.Styles>
<Style Selector="DataGridColumnHeader"> <Style Selector="DataGridColumnHeader">
<Setter Property="MinHeight" Value="28"/> <Setter Property="MinHeight" Value="24"/>
<Setter Property="Template"> <Setter Property="Template">
<ControlTemplate> <ControlTemplate>
<Border Background="{DynamicResource Brush.Window}" <Border Background="{DynamicResource Brush.Window}"