
How to use "Command Binding" to monitor changes
How to use "Command Binding" to monitor changes
Hello,
The ToggleSwitch in the Shared library derives from the standard .NET ToggleButton base class. The Command associated with the button is only used to trigger a change in state, but cannot be used to monitor changes in state since the state can be changed without invoking the command. If you want to monitor the state of the control, either set up a binding to the IsChecked property or listen for the Checked event to be raised.
This question was originally posted in the Ribbon for WPF forum, but we assumed you were talking about the ToggleSwitch control in the Shared library since Ribbon does not define a ToggleSwitch control. If we misunderstood, please let us know exactly which control you are referring to.
Please log in to a validated account to post comments.