Browse Source

Do not hardcode Grid.*Span-Properties for ScrollViewer (#12301)

looks like this is only valid for FluentTheme.

Co-authored-by: Jumar Macato <16554748+jmacato@users.noreply.github.com>
pull/13688/head
Tim 2 years ago
committed by GitHub
parent
commit
8bebf7153e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/Avalonia.Themes.Fluent/Controls/ScrollViewer.xaml

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

@ -27,8 +27,6 @@
<ScrollContentPresenter Name="PART_ContentPresenter"
Grid.Row="0"
Grid.Column="0"
Grid.RowSpan="2"
Grid.ColumnSpan="2"
Background="{TemplateBinding Background}"
HorizontalSnapPointsType="{TemplateBinding HorizontalSnapPointsType}"
VerticalSnapPointsType="{TemplateBinding VerticalSnapPointsType}"
@ -65,5 +63,9 @@
<Style Selector="^[IsExpanded=true] /template/ Panel#PART_ScrollBarsSeparator">
<Setter Property="Opacity" Value="1" />
</Style>
<Style Selector="^[AllowAutoHide=True] /template/ ScrollContentPresenter#PART_ContentPresenter">
<Setter Property="Grid.ColumnSpan" Value="2" />
<Setter Property="Grid.RowSpan" Value="2" />
</Style>
</ControlTheme>
</ResourceDictionary>

Loading…
Cancel
Save