'Declaration
<ExtensionAttribute()> Public Shared Function GetAllParents( _ ByVal elem As FrameworkElement _ ) As IEnumerable(Of FrameworkElement)
'Usage
Dim elem As FrameworkElement Dim value As IEnumerable(Of FrameworkElement) value = Extensions.GetAllParents(elem)
[Extension()] public static IEnumerable<FrameworkElement> GetAllParents( FrameworkElement elem )
[Extension()] public: static IEnumerable<FrameworkElement^>^ GetAllParents( FrameworkElement^ elem )
Parameters
- elem
Return Value
The list of ancestor framework elements in the visual tree hierarchy