Class InvokeCommandAction
Executes a specified ICommand when invoked.
Inheritance
System.Object
InvokeCommandAction
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Interactivity
Assembly: OpenSilver.Interactivity.dll
Syntax
public sealed class InvokeCommandAction : TriggerAction<DependencyObject>, IAttachedObject
Fields
| Improve this Doc View SourceCommandParameterProperty
Declaration
public static readonly DependencyProperty CommandParameterProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
CommandProperty
Declaration
public static readonly DependencyProperty CommandProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceCommand
Gets or sets the command this action should invoke. This is a dependency property.
Declaration
public ICommand Command { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand | The command to execute. |
Remarks
This property will take precedence over the CommandName property if both are set.
CommandName
Gets or sets the name of the command this action should invoke.
Declaration
public string CommandName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the command this action should invoke. |
Remarks
This property will be superseded by the Command property if both are set.
CommandParameter
Gets or sets the command parameter. This is a dependency property.
Declaration
public object CommandParameter { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The command parameter. |
Remarks
This is the value passed to ICommand.CanExecute and ICommand.Execute.
Methods
| Improve this Doc View SourceInvoke(Object)
Invokes the action.
Declaration
protected override void Invoke(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | The parameter to the action. If the action does not require a parameter, the parameter may be set to a null reference. |