Share via


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 const& element, winrt::hstring const& value);
public static void SetAcceleratorKey(DependencyObject element, string value);
function setAcceleratorKey(element, value)
Public Shared Sub SetAcceleratorKey (element As DependencyObject, value As String)

Parameters

element
DependencyObject

The DependencyObject for which to set the property.

value
String

Platform::String

winrt::hstring

The accelerator key value to set.

Applies to

See also