Skip to main content

EventToCommand Members

A trigger that invokes a command when a specific event is fired.

Constructors

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

Fields

Name Description
AllowChangingEventOwnerIsEnabledProperty static Identifies the AllowChangingEventOwnerIsEnabled dependency property.
CommandParameterProperty static Identifies the CommandParameter dependency property. Inherited from EventToCommandBase.
CommandProperty static Identifies the Command dependency property. Inherited from EventToCommandBase.
EventArgsConverterProperty static Identifies the EventArgsConverter dependency property.
EventNameProperty static Identifies the EventName dependency property. Inherited from EventTriggerBase<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.
SourceNameProperty static Identifies the SourceName dependency property. Inherited from EventTriggerBase<T>.
SourceObjectProperty static Identifies the SourceObject dependency property. Inherited from EventTriggerBase<T>.
UseDispatcherProperty static Identifies the UseDispatcher dependency property. Inherited from EventToCommandBase.

Properties

Name Description
AllowChangingEventOwnerIsEnabled Gets or sets whether the event owner’s IsEnabled property is set according to the Command’s CanExecute logic. This is a dependency property.
Command Specifies the command to invoke when the associated event is raised. This is a dependency property. Inherited from EventToCommandBase.
CommandParameter Specifies the parameter to pass to the Command. This is a dependency property. Inherited from EventToCommandBase.
EventArgsConverter Gets or sets a converter used to convert the event’s argument to a command’s parameter. This is a dependency property.
EventName Specifies the name of the event that triggers the associated command. This is a dependency property. Inherited from EventTriggerBase<T>.
MarkRoutedEventsAsHandled Specifies whether to mark the associated routed event as handled when the command is executed. This is a dependency property. Inherited from EventToCommandBase.
ModifierKeys Gets or sets modifier keys that the user needs to press to execute a command. This is a dependency property.
PassEventArgsToCommand Gets or sets whether the event argument is passed to the command. This is a dependency property.
ProcessEventsFromDisabledEventOwner Specifies whether the EventToCommand processes events for the associated control even if the associated control is disabled. This is a dependency property. Inherited from EventToCommandBase.
Source Gets the source object. Inherited from EventTriggerBase<T>.
SourceName Specifies the name of the source object whose event is handled. This is a dependency property. Inherited from EventTriggerBase<T>.
SourceObject Specifies the source object whose event is handled. This is a dependency property. Inherited from EventTriggerBase<T>.
UseDispatcher Gets or sets if the Command is performed using the Dispatcher. This is a dependency property. Inherited from EventToCommandBase.

Methods

Name Description
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
GetHashCode() Serves as the default hash function. 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