VisualTreeHelper.GetChild Method (DependencyObject, Int32)
Returns the child visual object from the specified collection index within a specified parent.
Assembly: PresentationCore (in PresentationCore.dll)
static member GetChild : reference:DependencyObject * childIndex:int -> DependencyObject
The index that represents the child visual that is contained by reference.
Return ValueType: System.Windows.DependencyObject
The index value of the child visual object.
The following example shows how to enumerate all the descendants of a visual object. This is a technique you might use if you are interested in serializing all the rendering information of a visual object hierarchy or are performing analysis or alternative rendering.
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0