C# Class OIShoppingListWinPhone.Effects.TreeHelpers

Couple of simple helpers for walking the visual tree
ファイルを表示 Open project: openintents/shoppinglist_winphone

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