GoXam for WPF v3
FindAncestor<T> Method
Northwoods.GoXam Namespace > Part Class : FindAncestor<T> Method
frequently typeof(Node)
This static method takes an element and walks up the visual tree looking for an element of type T.
Syntax
public static T FindAncestor<T>( 
   Visual elt
)
where T: Visual

Parameters

elt

Type Parameters

T
frequently typeof(Node)

Return Value

the elt if it is of type T, or else one of its parent visuals of that type, or else null if no such element was found
See Also

Reference

Part Class
Part Members