[]
        
(Showing Draft Content)

C1.WinUI.Core.ViewEx.GetAllParents

GetAllParents Method

GetAllParents(FrameworkElement)

Returns all the parents in the visual tree

Declaration
public static IEnumerable<FrameworkElement> GetAllParents(this FrameworkElement elem)
Parameters
Type Name Description
FrameworkElement elem
Returns
Type Description
IEnumerable<FrameworkElement>

The list of ancestor framework elements in the visual tree hierarchy