Show / Hide Table of Contents

Class InvokeCommandAction

Executes a specified ICommand when invoked.

Inheritance
System.Object
DependencyObject
TriggerAction
TriggerAction<DependencyObject>
InvokeCommandAction
Implements
IAttachedObject
Inherited Members
TriggerAction<DependencyObject>.AssociatedObject
TriggerAction<DependencyObject>.AssociatedObjectTypeConstraint
TriggerAction.IsEnabledProperty
TriggerAction.IsEnabled
TriggerAction.OnAttached()
TriggerAction.OnDetaching()
TriggerAction.IAttachedObject.AssociatedObject
TriggerAction.Attach(DependencyObject)
TriggerAction.Detach()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
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>, IDependencyObject, IAttachedObject

Fields

| Improve this Doc View Source

CommandParameterProperty

Declaration
public static readonly DependencyProperty CommandParameterProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

CommandProperty

Declaration
public static readonly DependencyProperty CommandProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

EventArgsConverterParameterProperty

Declaration
public static readonly DependencyProperty EventArgsConverterParameterProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

EventArgsConverterProperty

Declaration
public static readonly DependencyProperty EventArgsConverterProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

EventArgsParameterPathProperty

Declaration
public static readonly DependencyProperty EventArgsParameterPathProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

Command

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

EventArgsConverter

Gets or sets the IValueConverter that is used to convert the EventArgs passed to the Command as a parameter.

Declaration
public IValueConverter EventArgsConverter { get; set; }
Property Value
Type Description
IValueConverter
Remarks

If the Command or EventArgsParameterPath properties are set, this property is ignored.

| Improve this Doc View Source

EventArgsConverterParameter

Gets or sets the parameter that is passed to the EventArgsConverter.

Declaration
public object EventArgsConverterParameter { get; set; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

EventArgsParameterPath

Gets or sets the parameter path used to extract a value from an System.EventArgs property to pass to the Command as a parameter.

Declaration
public string EventArgsParameterPath { get; set; }
Property Value
Type Description
System.String
Remarks

If the Command propert is set, this property is ignored.

| Improve this Doc View Source

PassEventArgsToCommand

Specifies whether the EventArgs of the event that triggered this action should be passed to the Command as a parameter.

Declaration
public bool PassEventArgsToCommand { get; set; }
Property Value
Type Description
System.Boolean
Remarks

If the Command, EventArgsParameterPath, or EventArgsConverter properties are set, this property is ignored.

Methods

| Improve this Doc View Source

Invoke(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.

Overrides
TriggerAction.Invoke(Object)

Implements

IAttachedObject

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source