Table of Contents

Method GetSpecialParent

Namespace
Alternet.UI
Assembly
Alternet.UI.Maui.dll

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 Element

The 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.