fix: enhance ScrollViewer scrollbar alignment for better usability

This commit is contained in:
Dong Bin
2025-04-03 19:46:27 +08:00
parent b90b606b97
commit eefc7dc3f2

View File

@@ -204,10 +204,12 @@
<Style Selector="^:horizontal /template/ Thumb#thumb">
<Setter Property="MinWidth" Value="{DynamicResource ScrollBarMinLength}" />
<Setter Property="Height" Value="{DynamicResource ScrollBarThumbThickness}" />
<Setter Property="VerticalAlignment" Value="Bottom"/>
</Style>
<Style Selector="^:vertical /template/ Thumb#thumb">
<Setter Property="MinHeight" Value="{DynamicResource ScrollBarMinLength}" />
<Setter Property="Width" Value="{DynamicResource ScrollBarThumbThickness}" />
<Setter Property="HorizontalAlignment" Value="Right"/>
</Style>
<Style Selector="^ /template/ RepeatButton > PathIcon">
<Setter Property="Foreground" Value="{DynamicResource ScrollBarButtonDefaultForeground}" />