共用方式為


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) 

事件類型

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

如果專案位於 其 Visibility 屬性設定為 Collapsed的專案下,則不會引發此事件。

適用於

另請參閱