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
)
<ExtensionAttribute>
Public Shared Function GetParent (
obj As DependencyObject
) As DependencyObject
public:
[ExtensionAttribute]
static DependencyObject^ GetParent(
DependencyObject^ obj
)
[<ExtensionAttribute>]
static member GetParent :
obj : DependencyObject -> DependencyObject
Parameters
- obj
- Type: System.WindowsDependencyObject
The dependency object to get the parent for
Return Value
Type:
DependencyObjectParent 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