Skip to content

How to change the style of Slider? #5816

Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alessandrofrancesconi
Comment options

Answer selected by alessandrofrancesconi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants