mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-06 01:06:36 +08:00
feat: respect AllowAutoHide in DataGrid.
This commit is contained in:
@@ -471,6 +471,7 @@
|
|||||||
<Setter Property="VerticalScrollBarVisibility" Value="Auto" />
|
<Setter Property="VerticalScrollBarVisibility" Value="Auto" />
|
||||||
<Setter Property="SelectionMode" Value="Extended" />
|
<Setter Property="SelectionMode" Value="Extended" />
|
||||||
<Setter Property="GridLinesVisibility" Value="None" />
|
<Setter Property="GridLinesVisibility" Value="None" />
|
||||||
|
<Setter Property="ScrollViewer.AllowAutoHide" Value="True"></Setter>
|
||||||
<Setter Property="HorizontalGridLinesBrush" Value="{DynamicResource DataGridLineBrush}" />
|
<Setter Property="HorizontalGridLinesBrush" Value="{DynamicResource DataGridLineBrush}" />
|
||||||
<Setter Property="VerticalGridLinesBrush" Value="{DynamicResource DataGridLineBrush}" />
|
<Setter Property="VerticalGridLinesBrush" Value="{DynamicResource DataGridLineBrush}" />
|
||||||
<Setter Property="DropLocationIndicatorTemplate">
|
<Setter Property="DropLocationIndicatorTemplate">
|
||||||
@@ -570,5 +571,15 @@
|
|||||||
<Setter Property="IsVisible" Value="False" />
|
<Setter Property="IsVisible" Value="False" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^[(ScrollViewer.AllowAutoHide)=False]">
|
||||||
|
<Style Selector="^ /template/ DataGridRowsPresenter#PART_RowsPresenter">
|
||||||
|
<Setter Property="Grid.RowSpan" Value="1"></Setter>
|
||||||
|
<Setter Property="Grid.ColumnSpan" Value="2"></Setter>
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ DataGridColumnHeadersPresenter#PART_ColumnHeadersPresenter">
|
||||||
|
<Setter Property="Grid.ColumnSpan" Value="1"></Setter>
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
Reference in New Issue
Block a user