ContainerVisual.Parent Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the parent Visual for the ContainerVisual.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public DependencyObject Parent { get; }

Property Value

Type: System.Windows.DependencyObject

The parent of the visual.

Note that this is returned as DependencyObject, rather than a raw object.

This property might return null in a disconnected tree, or if you have traversed to the tree root at the window level.

.NET Framework
Available since 3.0
Return to top
Show: