ContainerVisual.Parent Property


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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft