dependencyObject
The object in the visual tree to find ancestors of.

Return Value

Returns itself an all ancestors in the visual tree.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Menu
This method will use the VisualTreeHelper.GetParent method to do a depth first walk up the visual tree and return all ancestors of the specified object, including the object itself.


Namespace: System.Windows.Interactivity
Assembly: System.Windows.Interactivity (in system.windows.interactivity.dll)

Syntax

Parameters