-
-
Notifications
You must be signed in to change notification settings - Fork 10
Crow.ToggleCommand
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
ToggleCommand
public class ToggleCommand : Command, IToggle
⬜ | 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) |
__ |
⬜ | name | description |
---|---|---|
IsToggleable |
__ | |
IsToggled |
__ |
⬜ | prototype | description |
---|---|---|
void Execute(object sender=null) |
trigger the execution of the command |
⬜ | name | description |
---|---|---|
ToggleOff |
__ | |
ToggleOn |
__ |