Northwoods.GoWPF 2.2.4 Assembly
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 Shared Function FindAncestor(Of T As Visual)( _
   ByVal elt As Visual _
) As T
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
Requirements
See Also

Reference

Part Class
Part Members

 

 


© Northwoods Software 2017. All Rights Reserved.

Send Feedback