ContainerVisual::GetVisualChild Method (Int32)
Assembly: PresentationCore (in PresentationCore.dll)
Notes to Inheritors:
The visual tree cannot be modified during this call.
The following example shows how to create a ContainerVisual object that is used as the parent for two DrawingVisual objects. Objects that are added to the ContainerVisual object must be added in reverse z-order (bottom to top) to ensure they are rendering in the correct drawing order. In order for the visual tree to be enumerated correctly, the example provides overridden implementations of the method and VisualChildrenCount property.
Available since 3.0