ComponentOne Basic Library for WPF and Silverlight
GetAllParents Method (Extensions)


C1.Silverlight Namespace > Extensions Class : GetAllParents Method
Returns all the parents in the visual tree
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function GetAllParents( _
   ByVal elem As System.Windows.FrameworkElement _
) As System.Collections.Generic.IList(Of FrameworkElement)
'Usage
 
Dim elem As System.Windows.FrameworkElement
Dim value As System.Collections.Generic.IList(Of FrameworkElement)
 
value = Extensions.GetAllParents(elem)
[System.Runtime.CompilerServices.Extension()]
public static System.Collections.Generic.IList<FrameworkElement> GetAllParents( 
   System.Windows.FrameworkElement elem
)

Parameters

elem

Return Value

The list of ancestor framework elements in the visual tree hierarchy
See Also

Reference

Extensions Class
Extensions Members