Posted 2 years ago by SPF - Appeon
Version: 22.1.3

How to use "Command Binding" to monitor changes

Comments (1)

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA


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.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.