Skip to content

Change color ToggleSwitch when IsMouseOver=True and IsOn=True #4111

Answered by timunie
recetarioMDWiki asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @recetarioMDWiki

just override the needed Brushes in your Resources-Section.

Available Brushes:

<!-- Resources for MahApps.Styles.ToggleSwitch -->
<markup:StaticResource x:Key="MahApps.Brushes.ToggleSwitch.ContentForeground" ResourceKey="MahApps.Brushes.SystemControlForegroundBaseHigh" />
<markup:StaticResource x:Key="MahApps.Brushes.ToggleSwitch.ContentForegroundDisabled" ResourceKey="MahApps.Brushes.SystemControlDisabledBaseMediumLow" />
<markup:StaticResource x:Key="MahApps.Brushes.ToggleSwitch.HeaderForeground" ResourceKey="MahApps.Brushes.SystemControlForeground…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by recetarioMDWiki
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