共用方式為


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的專案下,則不會引發此事件。

適用於

另請參閱