Command Class |
Namespace: Eto.Forms
The Command type exposes the following members.
Name | Description | |
---|---|---|
Command |
Initializes a new instance of the Command class.
| |
Command(EventHandlerEventArgs) |
Initializes a new instance of the Command class with the specified execute handler.
|
Name | Description | |
---|---|---|
Bindings |
Gets the collection of bindings that are attached to this widget
| |
CommandParameter |
Gets or sets the parameter to pass to the Command when executing or determining its CanExecute state.
| |
DataContext |
Gets or sets the data context for this widget for binding
| |
DelegatedCommand |
Gets or sets a command to delegate to when the command is invoked.
| |
Enabled |
Gets or sets a value indicating whether this Command is enabled.
| |
ID |
Gets or sets the ID of the command
| |
Image |
Gets or sets the image for the menu or tool item.
| |
MenuText |
Gets or sets the text when shown on the menu.
| |
Parent |
Gets the parent widget which this widget has been added to, if any
| |
Properties |
Gets the dictionary of properties for this widget
| |
Shortcut |
Gets or sets the shortcut to trigger this command.
| |
Tag |
Gets or sets a user-defined tag value for this instance.
| |
ToolBarText |
Gets or sets the tool bar text.
| |
ToolTip |
Gets or sets the tool tip on both the menu and toolbar.
|
Name | Description | |
---|---|---|
CreateMenuItem |
Creates a new menu item attached to this command.
| |
CreateToolItem |
Creates a new tool item attached to this command.
| |
Execute |
Execute the command programatically.
| |
OnDataContextChanged |
Raises the DataContextChanged event
| |
OnEnabledChanged |
Raises the EnabledChanged event.
| |
OnExecuted |
Raises the Executed event.
|
Name | Description | |
---|---|---|
DataContextChanged |
Event to handle when the DataContext has changed
| |
EnabledChanged |
Occurs when the Enabled property is changed.
| |
Executed |
Occurs when the command is executed from either the menu or toolbar.
|
Name | Description | |
---|---|---|
(Command to MenuItem) |
Implicitly converts the command to a menu item
| |
(Command to ToolItem) |
Implicitly converts the command to a tool item
|
Name | Description | |
---|---|---|
BindT(String, DirectBindingT, DualBindingMode) | Overloaded.
Adds a new dual binding between the control and the specified source binding
(Defined by BindableExtensions.) | |
BindT(IndirectBindingT, DirectBindingT, DualBindingMode) | Overloaded.
Adds a new binding to the control with a direct value binding
(Defined by BindableExtensions.) | |
BindT(String, Object, String, DualBindingMode) | Overloaded.
Adds a new dual binding between the control and the specified object
(Defined by BindableExtensions.) | |
BindT(IndirectBindingT, Object, IndirectBindingT, DualBindingMode, T, T) | Overloaded.
Adds a new binding to the control with an indirect binding to the provided objectValue (Defined by BindableExtensions.) | |
BindDataContextT(String, String, DualBindingMode, T, T) | Overloaded.
Adds a new binding with the control and the the control's current data context
(Defined by BindableExtensions.) | |
BindDataContextT(IndirectBindingT, IndirectBindingT, DualBindingMode, T, T) | Overloaded.
Adds a new binding from the control to its data context
(Defined by BindableExtensions.) |