KeyboardAcceleratorInvokedEventArgs KeyboardAcceleratorInvokedEventArgs KeyboardAcceleratorInvokedEventArgs KeyboardAcceleratorInvokedEventArgs Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Provides event data for the Invoked event.

public : sealed class KeyboardAcceleratorInvokedEventArgs : IKeyboardAcceleratorInvokedEventArgspublic sealed class KeyboardAcceleratorInvokedEventArgs : IKeyboardAcceleratorInvokedEventArgsPublic NotInheritable Class KeyboardAcceleratorInvokedEventArgs Implements IKeyboardAcceleratorInvokedEventArgs// This API is not available in Javascript.
Attributes
Windows 10 requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Properties

Element Element Element Element

Prerelease. Gets the object associated with the keyboard shortcut (accelerator).

public : DependencyObject Element { get; }public DependencyObject Element { get; }Public ReadOnly Property Element As DependencyObject// This API is not available in Javascript.
Value
DependencyObject DependencyObject DependencyObject DependencyObject

A reference to the object associated with the keyboard shortcut.

Handled Handled Handled Handled

Prerelease. Gets or sets a value that marks the event as handled.

public : PlatForm::Boolean Handled { get; set; }public bool Handled { get; set; }Public ReadWrite Property Handled As bool// This API is not available in Javascript.
Value
PlatForm::Boolean bool bool bool

true to mark the event handled. false to leave the event unhandled. The default is false.

Remarks

The keyboard accelerator event bubbles from the element that has the focus to the root Window element. If the event isn't handled, the framework looks for other accelerators outside of the bubbling path using a table of global accelerators. All accelerators are registered as global unless scoped using ScopeOwner.

Scoped accelerators are invoked only if focus is inside a specific scope. For example, in a Grid that contains many controls, the accelerator can be associated with a control scoped to the Grid (the Grid is the ScopeOwner ). In this case, the root element is the Grid.

If two accelerators are defined with the same key combination, the first accelerator found in the table is invoked.