KeyboardAcceleratorInvokedEventArgs.Handled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that marks the event as handled.
public:
property bool Handled { bool get(); void set(bool value); };
bool Handled();
void Handled(bool value);
public bool Handled { get; set; }
var boolean = keyboardAcceleratorInvokedEventArgs.handled;
keyboardAcceleratorInvokedEventArgs.handled = boolean;
Public Property Handled As Boolean
Property Value
bool
true to mark the event handled; false to leave the event unhandled, which permits the event to potentially route further. 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.