UIElement.AccessKey UIElement.AccessKey UIElement.AccessKey UIElement.AccessKey Property

Definition

Gets or sets the access key (mnemonic) for this element.

public : Platform::String AccessKey { get; set; }
winrt::hstring AccessKey(); void AccessKey(winrt::hstring accesskey);
public string AccessKey { get; set; }
Public ReadWrite Property AccessKey As string
Property Value
string string

The access key (mnemonic) for this element.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

Setting this property enables the AccessKeyDisplayRequested event to be raised.

If the AutomationProperties.AccessKey attached property is not set, this property is used by the Automation framework instead. The value is used as case-insensitive, using the user language. It is used as text, so if an Input Method Editor (IME) is active the composed text is used.

See Also