Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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
Show:
© 2017 Microsoft