Compartir a través de


FrameworkElementAutomationPeer.GetChildrenCore Method

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

Returns the collection of child elements of the UIElement that is associated with this FrameworkElementAutomationPeer. This method is called by GetChildren.

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

Syntax

'Declaration
Protected Overrides Function GetChildrenCore As List(Of AutomationPeer)
protected override List<AutomationPeer> GetChildrenCore()

Return Value

Type: System.Collections.Generic.List<AutomationPeer>
A list of child AutomationPeer elements.

Remarks

Notes to Inheritors

The return value for this method in the FrameworkElementAutomationPeer implementation runs through existing child automation peers using internal logic and returns a collection. If there are no actual children, the FrameworkElementAutomationPeer implementation will still return an empty list.

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.