Click or drag to resize

VisualTreeHelperExtensionsGetParent Method

Gets the parent of a dependency object

Namespace:  Ptv.XServer.Controls.Map
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public static DependencyObject GetParent(
	this DependencyObject obj
)

Parameters

obj
Type: System.WindowsDependencyObject
The dependency object to get the parent for

Return Value

Type: DependencyObject
Parent of the dependency object

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DependencyObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also