Assembly: PresentationCore (in PresentationCore.dll)
By default, a ContainerVisual does not have any children.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.