-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
CheckedCommand and UnCheckedCommand Missing in 2.0.0-Alpha0748 #3783
Comments
Hi @fradsham , it seems it was replaced by just one MahApps.Metro/src/MahApps.Metro/Controls/ToggleSwitch.cs Lines 332 to 339 in 5873948
I hope this helps you Happy coding, |
Thanks, Tim for the information. Would there be an appetite if someone wanted to do a pull-request and add the OnCommand and OffCommand based on the Command mentioned above, so there are three options for developers? Happy Coding |
…-Off-Commands (GH-3783) Add OnCommand and OffCommand to ToggleSwitch
@fradsham This will be available in next release again. <Controls:ToggleSwitch CommandParameter="{Binding}"
OnCommand="{Binding ToggleSwitchOnCommand}"
OffCommand="{Binding ToggleSwitchOffCommand}" /> |
Missing Commands in the new alpha version*
Not to repeat but I asked this on stackoverflow but never got a response, so I would like to ask here because I do not know if this removal of the two commands is intentional or not? If it is intentionally removed, is there an example to develop a work around?
To Reproduce
Steps to reproduce the behavior:
<mahapps:ToggleSwitch OnContent="{Binding OnLabelText}" OffContent="{Binding OffLabelText}" Style="{StaticResource ToggleSwitch.Win10}"/>
Environment:
The text was updated successfully, but these errors were encountered: