Change color ToggleSwitch when IsMouseOver=True and IsOn=True #4111
Answered
by
timunie
recetarioMDWiki
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
timunie
May 24, 2021
Replies: 1 comment 1 reply
-
just override the needed Brushes in your Available Brushes: MahApps.Metro/src/MahApps.Metro/Styles/Themes/Theme.Template.xaml Lines 485 to 517 in a636cc8 Usage: <SolidColorBrrush (OR ANY OTHER BRUSH) x:Key="[THE KEY TO OVERRIDE]" Color="[THE NEW COLOR]" /> Example <SolidColorBrrush x:Key="MahApps.Brushes.ToggleSwitch.StrokeOff" Color="White" /> Happy coding |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
recetarioMDWiki
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @recetarioMDWiki
just override the needed Brushes in your
Resources
-Section.Available Brushes:
MahApps.Metro/src/MahApps.Metro/Styles/Themes/Theme.Template.xaml
Lines 485 to 517 in a636cc8