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
view
ElementThe view whose parent is to be found.
Returns
- T
The closest parent of type
T
, or null if none is found.
Type Parameters
T
The type of the parent view to find.