Method GetSpecialParent
GetSpecialParent<T>(Element?)
Searches for the closest parent of type T in the view hierarchy.
public static T? GetSpecialParent<T>(Element? view) where T : Element
Parameters
viewElementThe view whose parent is to be found.
Returns
- T
The closest parent of type
T, or null if none is found.
Type Parameters
TThe type of the parent view to find.