ux: Use RepeatButton instead of Button to make ScrollIndicator support PointerPress operation

This commit is contained in:
Gadfly 2024-05-11 22:50:49 +08:00
parent 0fcef2343a
commit ed680bf813
No known key found for this signature in database
GPG key ID: 9128145F93CFC69C
2 changed files with 7 additions and 7 deletions

View file

@ -230,16 +230,16 @@
<Setter Property="Background" Value="Red"/>
</Style>
<Style Selector="Button.icon_button">
<Style Selector="Button.icon_button, RepeatButton.icon_button">
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<Style Selector="Button.icon_button /template/ ContentPresenter#PART_ContentPresenter">
<Style Selector="Button.icon_button /template/ ContentPresenter#PART_ContentPresenter, RepeatButton.icon_button /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Opacity" Value="0.8"/>
</Style>
<Style Selector="Button.icon_button:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Style Selector="Button.icon_button:pointerover /template/ ContentPresenter#PART_ContentPresenter, RepeatButton.icon_button:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Opacity" Value="1"/>
</Style>