Skip to main content

KeyToCommand Members

Allows you to bind a KeyGesture to a command.

Constructors

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

Fields

Name Description
CommandParameterProperty static Identifies the CommandParameter dependency property. Inherited from EventToCommandBase.
CommandProperty static Identifies the Command dependency property. Inherited from EventToCommandBase.
EventNameProperty static Identifies the EventName dependency property. Inherited from EventTriggerBase<T>.
KeyGestureProperty static Identifies the KeyGesture dependency property.
MarkRoutedEventsAsHandledProperty static Identifies the MarkRoutedEventsAsHandled dependency property. Inherited from EventToCommandBase.
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
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.
EventName Specifies the name of the event that triggers the associated command. This is a dependency property. Inherited from EventTriggerBase<T>.
KeyGesture Specifies the key gesture used for this command. This is a dependency property.
MarkRoutedEventsAsHandled Specifies whether to mark the associated routed event as handled when the command is executed. This is a dependency property. Inherited from EventToCommandBase.
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