C# Class SumoNinjaMonkey.Framework.TreeHelpers

Couple of simple helpers for walking the visual tree.
显示文件 Open project: liquidboy/X

Public Methods

Method Description
GetVisualAncestors ( this node ) : IEnumerable

Gets the ancestors of the element, up to the root.

GetVisualParent ( this node ) : FrameworkElement

Gets the visual parent of the element.

Method Details

GetVisualAncestors() public static method

Gets the ancestors of the element, up to the root.
public static GetVisualAncestors ( this node ) : IEnumerable
node this The element to start from.
return IEnumerable

GetVisualParent() public static method

Gets the visual parent of the element.
public static GetVisualParent ( this node ) : FrameworkElement
node this The element to check.
return Windows.UI.Xaml.FrameworkElement