AccessKeyManager.IsDisplayModeEnabledChanged 事件

定義

發生于目前有效存取金鑰的按鍵提示顯示/隱藏,以及啟用/停用存取金鑰時。

// Register
static event_token IsDisplayModeEnabledChanged(TypedEventHandler<IInspectable, IInspectable const&> const& handler) const;

// Revoke with event_token
static void IsDisplayModeEnabledChanged(event_token const* cookie) const;

// Revoke with event_revoker
static AccessKeyManager::IsDisplayModeEnabledChanged_revoker IsDisplayModeEnabledChanged(auto_revoke_t, TypedEventHandler<IInspectable, IInspectable const&> const& handler) const;
public static event TypedEventHandler<object,object> IsDisplayModeEnabledChanged;
function onIsDisplayModeEnabledChanged(eventArgs) { /* Your code */ }
Microsoft.UI.Xaml.Input.AccessKeyManager.addEventListener("isdisplaymodeenabledchanged", onIsDisplayModeEnabledChanged);
Microsoft.UI.Xaml.Input.AccessKeyManager.removeEventListener("isdisplaymodeenabledchanged", onIsDisplayModeEnabledChanged);
- or -
Microsoft.UI.Xaml.Input.AccessKeyManager.onisdisplaymodeenabledchanged = onIsDisplayModeEnabledChanged;
Public Shared Custom Event IsDisplayModeEnabledChanged As TypedEventHandler(Of Object, Object) 

事件類型

TypedEventHandler<Object,Object>

TypedEventHandler<IInspectable,IInspectable>

備註

注意

便捷鍵是 ALT 鍵和一或多個英數位元索引鍵的組合,可用來在應用程式中啟用相關聯的控制項,以支援存取金鑰 (例如Word) 。

按鍵提示是當使用者按 Alt 鍵時控制項旁邊顯示的徽章。 每個按鍵提示包含啟動相關聯控制項的英數字元按鍵。

下圖顯示 Word 中已啟動便捷鍵的 [常用] 索引標籤(請注意,針對數字和多個按鍵動作的支援)。

Microsoft Word中存取金鑰的金鑰提示徽章。

Microsoft Word 中存取金鑰的金鑰提示徽章

如需詳細資訊 ,請參閱存取金鑰指導方針

適用於

另請參閱