C# Class Microsoft.Phone.Controls.TreeHelpers

Couple of simple helpers for walking the visual tree.
Show file Open project: nokiadatagathering/WP7-Official

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 System.Windows.FrameworkElement