How to change the style of Slider? #5816
Answered
by
maxkatz6
alessandrofrancesconi
asked this question in
Q&A
-
I would like to change the style of the Slider. In particular I would like to:
If useful, I'm using the Fluent Theme |
Beta Was this translation helpful? Give feedback.
Answered by
maxkatz6
Apr 21, 2021
Replies: 1 comment 1 reply
-
Use slider styles code as a reference You can define your own styles, which will override default ones. Or you can create style with new whole slider ControlTemplate. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
alessandrofrancesconi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use slider styles code as a reference
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Fluent/Controls/Slider.xaml
You can define your own styles, which will override default ones. Or you can create style with new whole slider ControlTemplate.
Also pay attention on resources, some of them can be redefined without styles change.