FrameworkElementExtensions.GetAncestor(DependencyObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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