Compartir a través de


AutomationPeer.GetChildren Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the collection of child elements that are represented in the UI Automation tree as immediate child elements of the automation peer.

Namespace:  System.Windows.Automation.Peers
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Function GetChildren As List(Of AutomationPeer)
public List<AutomationPeer> GetChildren()

Return Value

Type: System.Collections.Generic.List<AutomationPeer>
The collection of child elements.

Remarks

This implementation does nothing more than calling GetChildrenCore.

GetChildren might have a useful value when the peer it is invoked upon is the peer for an items control or a similar control.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.