GetChildren Method

AutomationPeer.GetChildren Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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)

public List<AutomationPeer> GetChildren()

Return Value

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

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2016 Microsoft