Table of Contents

Method GetObjectView

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

GetObjectView(object?)

Retrieves the View associated with the specified object, if available.

public static View? GetObjectView(object? instance)

Parameters

instance object

The object to retrieve the associated View from. This can be a View or a Control.

Returns

View

The View associated with the specified object, or null if no association exists.

Remarks

If the instance is a View, it is returned directly. If the instance is a Control, the method attempts to retrieve the container View using GetContainer(AbstractControl?).