AutomationProperties.SetAccessKey(DependencyObject, String) AutomationProperties.SetAccessKey(DependencyObject, String) AutomationProperties.SetAccessKey(DependencyObject, String) AutomationProperties.SetAccessKey(DependencyObject, String) Method

Definition

Sets the value of the AutomationProperties.AccessKey attached property for the specified DependencyObject.

public : static void SetAccessKey(DependencyObject element, Platform::String value)
static void SetAccessKey(DependencyObject element, winrt::hstring value) const;
public static void SetAccessKey(DependencyObject element, String value)
Public Shared Sub SetAccessKey(element As DependencyObject, value As String)

Parameters

element
DependencyObject DependencyObject

The DependencyObject for which to set the property.

value
String String

The access key value to set.