Freigeben über


InvokeCommandAction Class

Executes a specified ICommand when invoked.

Inheritance Hierarchy

System.Object
  DependencyObject
    Microsoft.Xaml.Interactions.Core.InvokeCommandAction

Namespace:  Microsoft.Xaml.Interactions.Core
Assembly:  Microsoft.Xaml.Interactions (in Microsoft.Xaml.Interactions.dll)

Syntax

'Declaration
Public NotInheritable Class InvokeCommandAction _
    Inherits DependencyObject _
    Implements IAction
public sealed class InvokeCommandAction : DependencyObject, 
    IAction
public ref class InvokeCommandAction sealed : public DependencyObject, 
    IAction
[<Sealed>]
type InvokeCommandAction =  
    class 
        inherit DependencyObject 
        interface IAction 
    end
public final class InvokeCommandAction extends DependencyObject implements IAction

The InvokeCommandAction type exposes the following members.

Constructors

  Name Description
Public method InvokeCommandAction Initializes a new instance of the InvokeCommandAction class.

Top

Properties

  Name Description
Public property Command Gets or sets the command this action should invoke. This is a dependency property.
Public property CommandParameter Gets or sets the parameter that is passed to Execute. If this is not set, the parameter from the Execute method will be used. This is an optional dependency property.
Public property Dispatcher (Inherited from DependencyObject.)
Public property InputConverter Gets or sets the converter that is run on the parameter from the Execute method. This is an optional dependency property.
Public property InputConverterLanguage Gets or sets the language that is passed to the Convert method of InputConverter. This is an optional dependency property.
Public property InputConverterParameter Gets or sets the parameter that is passed to the Convert method of InputConverter. This is an optional dependency property.

Top

Methods

  Name Description
Public method ClearValue (Inherited from DependencyObject.)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Execute Executes the action.
Public method GetAnimationBaseValue (Inherited from DependencyObject.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetValue (Inherited from DependencyObject.)
Public method ReadLocalValue (Inherited from DependencyObject.)
Public method SetValue (Inherited from DependencyObject.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member CommandParameterProperty Identifies the CommandParameter dependency property.
Public fieldStatic member CommandProperty Identifies the Command dependency property.
Public fieldStatic member InputConverterLanguageProperty Identifies the InputConverterLanguage dependency property.
Public fieldStatic member InputConverterParameterProperty Identifies the InputConverterParameter dependency property.
Public fieldStatic member InputConverterProperty Identifies the InputConverter dependency property.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Xaml.Interactions.Core Namespace