Styling ScrollBar's Thumb in ScrollViewer #6782
-
Using this code below:
only Cursor property sets correctly, anything other gets ignored. Same with using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Typical rule of thumb when some setter is no applied is following:
I don't know which theme you are using (Default, Fluent or any other custom), but here are the sources for ScrollBar: And with Avalonia DevTools (F12) you can see what's current value and what's priority is there. Also, in devtools you can see all styles that are applied but might be in lower priority. In some cases, when control template has hardcoded value with local priority, you can't change this value with styles, so you need to replace whole template. Which makes sense anyway for such simple control as Thumb/ Nothing specific in my answer, but I hope it will help. |
Beta Was this translation helpful? Give feedback.
Typical rule of thumb when some setter is no applied is following:
I don't know which theme you are using (Default, Fluent or any other custom), but here are the sources for ScrollBar:
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Default/ScrollBar.xaml
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Fluent/Controls/ScrollBar.xaml
And with Avalonia DevTools (F12) you can see …