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

事件类型

注解

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

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

适用于

另请参阅