[]
Sets the Command property.
public MenuItemBuilder Command(Action<MenuCommandBuilder> build)
Public Function Command(build As Action(Of MenuCommandBuilder)) As MenuItemBuilder
| Type | Name | Description |
|---|---|---|
| Action<MenuCommandBuilder> | build | The build action |
| Type | Description |
|---|---|
| MenuItemBuilder | Current builder |
Sets the Command property.
public MenuItemBuilder Command(string execute, string canExecute = null)
Public Function Command(execute As String, Optional canExecute As String = Nothing) As MenuItemBuilder
| Type | Name | Description |
|---|---|---|
| string | execute | The execute client function |
| string | canExecute | The canExecute client function |
| Type | Description |
|---|---|
| MenuItemBuilder | Current builder |