共用方式為


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

適用於

另請參閱