Show / Hide Table of Contents

Class InvokeCommandAction

Executes a specified ICommand when invoked.

Inheritance
System.Object
DependencyObject
InvokeCommandAction
Implements
IAction
Inherited Members
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DependencyObject.Equals(Object)
DependencyObject.GetHashCode()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.GetLocalValueEnumerator()
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.OnPropertyChanged(DependencyProperty)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.SetBinding(DependencyProperty, Binding)
DependencyObject.SetResourceReference(DependencyProperty, Object)
Namespace: EmptyKeys.UserInterface.Interactions.Core
Assembly: EmptyKeys.UserInterface.dll
Syntax
public sealed class InvokeCommandAction : DependencyObject, IAction

Fields

CommandParameterProperty

Identifies the CommandParameter dependency property.

Declaration
public static readonly DependencyProperty CommandParameterProperty
Field Value
Type Description
DependencyProperty

CommandProperty

Identifies the Command dependency property.

Declaration
public static readonly DependencyProperty CommandProperty
Field Value
Type Description
DependencyProperty

InputConverterLanguageProperty

Identifies the InputConverterLanguage dependency property.

Declaration
public static readonly DependencyProperty InputConverterLanguageProperty
Field Value
Type Description
DependencyProperty

InputConverterParameterProperty

Identifies the InputConverterParameter dependency property.

Declaration
public static readonly DependencyProperty InputConverterParameterProperty
Field Value
Type Description
DependencyProperty

InputConverterProperty

Identifies the InputConverter dependency property.

Declaration
public static readonly DependencyProperty InputConverterProperty
Field Value
Type Description
DependencyProperty

Properties

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
ICommand

The command.

CommandParameter

Gets or sets the parameter that is passed to Execute(Object). If this is not set, the parameter from the Execute(Object, Object) method will be used. This is an optional dependency property.

Declaration
public object CommandParameter { get; set; }
Property Value
Type Description
System.Object

The command parameter.

InputConverter

Gets or sets the converter that is run on the parameter from the Execute(Object, Object) method. This is an optional dependency property.

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

The input converter.

InputConverterLanguage

Gets or sets the language that is passed to the Convert(Object, Type, Object, CultureInfo) method of InputConverter. This is an optional dependency property.

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

The input converter language.

InputConverterParameter

Gets or sets the parameter that is passed to the Convert(Object, Type, Object, CultureInfo) method of InputConverter. This is an optional dependency property.

Declaration
public object InputConverterParameter { get; set; }
Property Value
Type Description
System.Object

The input converter parameter.

Methods

Execute(Object, Object)

Executes the action.

Declaration
public object Execute(object sender, object parameter)
Parameters
Type Name Description
System.Object sender

The System.Object that is passed to the action by the behavior. Generally this is AssociatedObject or a target object.

System.Object parameter

The value of this parameter is determined by the caller.

Returns
Type Description
System.Object

True if the command is successfully executed; else false.

Remarks

An example of parameter usage is EventTriggerBehavior, which passes the EventArgs as a parameter to its actions.

Implements

IAction
Back to top Generated by DocFX