Udostępnij za pośrednictwem


AutomationProperties.SetLabeledBy(DependencyObject, UIElement) Method

Definition

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

public:
 static void SetLabeledBy(DependencyObject ^ element, UIElement ^ value);
 static void SetLabeledBy(DependencyObject const& element, UIElement const& value);
public static void SetLabeledBy(DependencyObject element, UIElement value);
function setLabeledBy(element, value)
Public Shared Sub SetLabeledBy (element As DependencyObject, value As UIElement)

Parameters

element
DependencyObject

The DependencyObject for which to set the property.

value
UIElement

The UI element that represents the label for element.

Applies to

See also