共用方式為


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 為 ,則不會引發這個事件。

適用於

另請參閱