FrameworkElementExtensions.GetAncestor(DependencyObject) Method

Definition

Retrieves the parent object of this framework element found of the given AncestorTypeProperty.

public static object GetAncestor (Windows.UI.Xaml.DependencyObject obj);
static member GetAncestor : Windows.UI.Xaml.DependencyObject -> obj
Public Function GetAncestor (obj As DependencyObject) As Object

Parameters

obj
Windows.UI.Xaml.DependencyObject

FrameworkElement

Returns

Parent object

Applies to