ToggleButton - SirePi/duality-ui GitHub Wiki

A ToggleButton is a button that, when clicked, toggles between Toggled and (not)Toggled state. When Toggled, the button appears Active. Derives from Button.

In addition to the Button's base properties and delegates, it also exposes:

  • Property Toggled - indicates if the ToggleButton is currently in its Toggled status or not.
  • Event OnToggleChange(ToggleButton toggleButton, bool previousValue, bool newValue) - an event that gets fired whenever the ToggleButton's Toggled property changes; i.e. going from true to true will not fire the event.