Browse Source

Removes hard-coded Grid.RowSpan and Grid.ColumnSpan from FluentTheme in Data grid - based on #12301 (#14460)

pull/14462/head
KrzysztofDusko 2 years ago
committed by GitHub
parent
commit
beef47606f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      src/Avalonia.Controls.DataGrid/Themes/Fluent.xaml

6
src/Avalonia.Controls.DataGrid/Themes/Fluent.xaml

@ -535,8 +535,6 @@
<DataGridRowsPresenter Name="PART_RowsPresenter" <DataGridRowsPresenter Name="PART_RowsPresenter"
Grid.Row="1" Grid.Row="1"
Grid.RowSpan="2"
Grid.ColumnSpan="3"
Grid.Column="0" Grid.Column="0"
ScrollViewer.IsScrollInertiaEnabled="{TemplateBinding IsScrollInertiaEnabled}"> ScrollViewer.IsScrollInertiaEnabled="{TemplateBinding IsScrollInertiaEnabled}">
<DataGridRowsPresenter.GestureRecognizers> <DataGridRowsPresenter.GestureRecognizers>
@ -589,6 +587,10 @@
<Setter Property="IsVisible" Value="False" /> <Setter Property="IsVisible" Value="False" />
</Style> </Style>
</Style> </Style>
<Style Selector="^ /template/ DataGridRowsPresenter#PART_RowsPresenter">
<Setter Property="Grid.RowSpan" Value="2" />
<Setter Property="Grid.ColumnSpan" Value="3" />
</Style>
</ControlTheme> </ControlTheme>
</ResourceDictionary> </ResourceDictionary>
</Styles.Resources> </Styles.Resources>

Loading…
Cancel
Save