UIElement.AccessKeyDisplayRequested 事件

定义

当用户请求显示访问密钥时发生。

// 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"/>

事件类型

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

注解

此事件通知元素显示访问键视觉对象。

如果元素位于其 Visibility 属性设置为 Collapsed 的元素下,则不会引发此事件。

适用于

另请参阅