Skip to content
Jean-Philippe Bruyère edited this page Oct 26, 2021 · 1 revision

helper class to bind in one step icon, caption, action, and validity tests to a controls

namespace: Crow

Inheritance Hierarchy

  • ToggleCommand

Syntax

public class ToggleCommand : Command, IToggle

Constructors

prototype description
ToggleCommand (ICommandHost _host, string caption, Binding< bool > toggleBinding, string icon=null, KeyBinding _keyBinding=null, Binding< bool > _canExecuteBinding=null) __
ToggleCommand (ICommandHost _host, string caption, Binding< bool > toggleBinding, string icon=null, KeyBinding _keyBinding=null, bool _canExecute=true) __

Properties

name description
IsToggleable __
IsToggled __

Methods

prototype description
void Execute(object sender=null) trigger the execution of the command

Events

name description
ToggleOff __
ToggleOn __
Clone this wiki locally