UIElement
and walks up the visual tree looking for an element of type T.
Visual Basic (Declaration) | |
---|---|
Public Shared Function FindAncestor(Of T As UIElement)( _ ByVal elt As UIElement _ ) As T |
Parameters
- elt
Type Parameters
- T
- the type
UIElement
or a subclass; frequentlytypeof(Node)