Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.3 KB

processkeyboardacceleratoreventargs_handled.md

File metadata and controls

29 lines (19 loc) · 1.3 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Input.ProcessKeyboardAcceleratorEventArgs.Handled
winrt property

Microsoft.UI.Xaml.Input.ProcessKeyboardAcceleratorEventArgs.Handled

-description

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

-property-value

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.

-see-also

Keyboard accelerators

-examples