Skip to content

How to Change the Background of Silder when pointer over or pointer pressed? #10072

Answered by castorix
haijialiu asked this question in Q&A
Discussion options

You must be logged in to vote

(it is Slider, not Silder...)
You can change the resources
For example :

Application.Current.Resources["SliderTrackFill"] = new SolidColorBrush(Microsoft.UI.Colors.RoyalBlue);
Application.Current.Resources["SliderTrackFillPointerOver"] = new SolidColorBrush(Microsoft.UI.Colors.RoyalBlue);
Application.Current.Resources["SliderTrackFillPressed"] = new SolidColorBrush(Microsoft.UI.Colors.RoyalBlue);

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@haijialiu
Comment options

@NicholasChrzan
Comment options

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