TextElement.AccessKeyDisplayRequested 事件

定义

当访问键序列启动以通知控件它们应显示访问键视觉对象时发生。

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

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

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

事件类型

注解

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

适用于

另请参阅