Sdílet prostřednictvím


UIElement.AccessKeyDisplayRequested Event

Definition

Occurs when the user requests that access keys be displayed.

// Register
event_token AccessKeyDisplayRequested(TypedEventHandler<UIElement, AccessKeyDisplayRequestedEventArgs const&> const& handler) const;

// Revoke with event_token
void AccessKeyDisplayRequested(event_token const* cookie) const;

// Revoke with event_revoker
UIElement::AccessKeyDisplayRequested_revoker AccessKeyDisplayRequested(auto_revoke_t, TypedEventHandler<UIElement, AccessKeyDisplayRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<UIElement,AccessKeyDisplayRequestedEventArgs> AccessKeyDisplayRequested;
function onAccessKeyDisplayRequested(eventArgs) { /* Your code */ }
uIElement.addEventListener("accesskeydisplayrequested", onAccessKeyDisplayRequested);
uIElement.removeEventListener("accesskeydisplayrequested", onAccessKeyDisplayRequested);
- or -
uIElement.onaccesskeydisplayrequested = onAccessKeyDisplayRequested;
Public Custom Event AccessKeyDisplayRequested As TypedEventHandler(Of UIElement, AccessKeyDisplayRequestedEventArgs) 
<uiElement AccessKeyDisplayRequested="eventhandler"/>

Event Type

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

This event notifies an element to show access key visuals.

This event is not raised if the element is under an element with its Visibility property set to Collapsed.

Applies to

See also