Table of Contents

Method GetTopSpecialParent

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

GetTopSpecialParent<T>(Element?)

Searches for the highest-level parent of type T in the element hierarchy.

public static T? GetTopSpecialParent<T>(Element? view) where T : Element

Parameters

view Element

The element whose topmost parent is to be found.

Returns

T

The topmost parent of type T, or null if none is found.

Type Parameters

T

The type of the parent element to find.