AutomationProperties.SetLabeledBy(DependencyObject, UIElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.