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

KeyToCommand Members

Allows you to specify a key combination that invokes a command.

Constructors

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

Fields

Name Description
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.
EventNameProperty static Identifies the EventName dependency property. Inherited from EventTrigger<T>.
EventOwnerProperty static Identifies the EventOwner dependency property. Inherited from EventTrigger<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.

Properties

Name Description
ActualEventOwner Gets an actual event owner. This is a dependency property. Inherited from EventTrigger<T>.
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.
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.
KeyGesture Gets or sets the key gesture that invokes the command. This is a dependency property.
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.
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