Skip to main content
A newer version of this page is available. .

EventToCommand Members

Executes a command in response to a raised event.

Constructors

Name Description
EventToCommand() Initializes a new instance of the EventToCommand class.

Fields

Name Description
AllowChangeEventOwnerIsEnabledProperty static Identifies the AllowChangeEventOwnerIsEnabled dependency property.
AssociatedObjectProperty static Identifies the AssociatedObject dependency property. Inherited from Behavior.
CommandParameterProperty static Identifies the CommandParameter dependency property. Inherited from EventToCommandBase.
CommandProperty static Identifies the Command dependency property. Inherited from EventToCommandBase.
DispatcherPriorityProperty static Identifies the DispatcherPriority dependency property. Inherited from EventToCommandBase.
EventArgsConverterProperty static Identifies the EventArgsConverter dependency property.
EventNameProperty static Identifies the EventName dependency property. Inherited from EventTrigger<T>.
EventOwnerProperty static Identifies the EventOwner dependency property. Inherited from EventTrigger<T>.
MarkRoutedEventsAsHandledProperty static Identifies the MarkRoutedEventsAsHandled dependency property. Inherited from EventToCommandBase.
ModifierKeysProperty static Identifies the ModifierKeys dependency property.
PassEventArgsToCommandProperty static Identifies the PassEventArgsToCommand dependency property.
ProcessEventsFromDisabledEventOwnerProperty static Identifies the ProcessEventsFromDisabledEventOwner dependency property. Inherited from EventToCommandBase.

Properties

Name Description
ActualEventOwner Gets an actual event owner. This is a dependency property. Inherited from EventTrigger<T>.
AllowChangeEventOwnerIsEnabled Gets or sets whether the event owner object’s IsEnabled property value reflects the command’s CanExecute method value. This is a dependency property.
Command Gets or sets the command to invoke when the associated event is raised. This is a dependency property. Inherited from EventToCommandBase.
CommandParameter Gets or sets a parameter to pass to the Command. This is a dependency property. Inherited from EventToCommandBase.
DispatcherPriority Gets or sets the priority of the DispatcherQueue that invokes the associated command. The default value is null which means that the DispatcherQueue is not used to invoke the associated command. This is a dependency property. Inherited from EventToCommandBase.
EventArgsConverter Gets or sets an object that converts the event’s argument to a command’s parameter. This is a dependency property.
EventName Gets or sets the name of an event that triggers the associated command. This is a dependency property. Inherited from EventTrigger<T>.
EventOwner Gets or sets a source object that raises the event. This is a dependency property. Inherited from EventTrigger<T>.
IsAttached Gets whether the behavior is attached to its associated object. Inherited from Behavior.
MarkRoutedEventsAsHandled Gets or sets whether the associated routed event is marked as handled when the command is executed. This is a dependency property. Inherited from EventToCommandBase.
ModifierKeys Gets or sets modifier keys that need to be pressed to call the command. This is a dependency property.
PassEventArgsToCommand Gets or sets whether the event arguments are passed to the command. This is a dependency property.
ProcessEventsFromDisabledEventOwner Gets or sets whether the EventToCommand processes events for event owner objects even if they are disabled. This is a dependency property. Inherited from EventToCommandBase.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also