Udostępnij za pośrednictwem


AutomationProperties.GetControlledPeers(DependencyObject) Method

Definition

A static utility method that retrieves the list of controlled peers from a target owner.

public:
 static IVector<UIElement ^> ^ GetControlledPeers(DependencyObject ^ element);
 static IVector<UIElement> GetControlledPeers(DependencyObject const& element);
public static IList<UIElement> GetControlledPeers(DependencyObject element);
function getControlledPeers(element)
Public Shared Function GetControlledPeers (element As DependencyObject) As IList(Of UIElement)

Parameters

element
DependencyObject

The owner object to retrieve controlled peers from.

Returns

A list containing the peers that the target element controls.

Remarks

Examining controlled peers is an advanced scenario that most peer implementations won't need to use.

This identifier is commonly used for Auto-suggest accessibility.

Applies to