MaterialDesignInXamlToolkit
MaterialDesignInXamlToolkit copied to clipboard
Change MaterialDesignSwitchToggleButton Track background
Bug explanation
Hello everyone!
I need to change the background color of the MaterialDesignSwitchToggleButton when isChecked=True.
I tried defining a Style based on your Toggle with a trigger, and I noticed that it correctly changes the color of the Thumb (in green), but my intention was to change the color of the Track.
Actual behavior:
What I want to achieve:
Is there a straightforward way to accomplish this?
Any help would be appreciated. Best regards
Version
4.9.0
MaterialDesignInXAML3 has a ToggleButton similar to the one you want.
@alcsdn I believe you can accomplish this by setting/modifying the values of these attached properties:
ToggleButtonAssist.SwitchTrackOnBackground
ToggleButtonAssist.SwitchTrackOffBackground
This issue is marked stale because it has been open 30 days with no activity. Remove stale label or update the issue, otherwise it will be closed in 14 days.
This issue was closed because it has been stalled for 14 days with no activity.