Summary
Finds all Ancestors of a given item on the visual tree.
- Namespace
- MahApps
.Metro .Controls - Containing Type
- TreeHelper
Syntax
public static IEnumerable<DependencyObject> GetAncestors(this DependencyObject child)
Parameters
| Name | Type | Description |
|---|---|---|
| child | DependencyObject | A node in a visual tree |
Return Value
| Type | Description |
|---|---|
| IEnumerable |
All ancestors in visual tree of child element |
