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

Definition

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

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

Parameters

element
DependencyObject DependencyObject

The DependencyObject for which to set the property.

value
String String

The accelerator key value to set.