[]
Returns all the parents in the visual tree
public static IEnumerable<FrameworkElement> GetAllParents(this FrameworkElement elem)
Public Shared Function GetAllParents(elem As FrameworkElement) As IEnumerable(Of FrameworkElement)
| Type | Name | Description |
|---|---|---|
| FrameworkElement | elem |
| Type | Description |
|---|---|
| IEnumerable<FrameworkElement> | The list of ancestor framework elements in the visual tree hierarchy |