Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change MaterialDesignSwitchToggleButton Track background #3427

Open
alcsdn opened this issue Dec 22, 2023 · 1 comment
Open

Change MaterialDesignSwitchToggleButton Track background #3427

alcsdn opened this issue Dec 22, 2023 · 1 comment
Labels
bug evaluation required Items is pending review or evaluation by the team question Old items with this tag will be automatically closed.
Milestone

Comments

@alcsdn
Copy link

alcsdn commented Dec 22, 2023

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:
Toggle Actual

What I want to achieve:
Toggle Correct

Is there a straightforward way to accomplish this?

Any help would be appreciated.
Best regards

Version

4.9.0

@alcsdn alcsdn added bug evaluation required Items is pending review or evaluation by the team labels Dec 22, 2023
@alcsdn alcsdn changed the title Change MaterialDesignSwitchToggleButton background Change MaterialDesignSwitchToggleButton Track background Jan 9, 2024
@JLdgu
Copy link
Contributor

JLdgu commented Feb 3, 2024

MaterialDesignInXAML3 has a ToggleButton similar to the one you want.

@Keboo Keboo added this to the 5.1.0 milestone Feb 8, 2024
@Keboo Keboo added the question Old items with this tag will be automatically closed. label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug evaluation required Items is pending review or evaluation by the team question Old items with this tag will be automatically closed.
Projects
None yet
Development

No branches or pull requests

3 participants