Table of Contents

Method GetParentPlatformUserControl

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetParentPlatformUserControl(AbstractControl?)

Retrieves the parent platform-specific user control of the specified AbstractControl.

public static UserControl? GetParentPlatformUserControl(AbstractControl? control)

Parameters

control AbstractControl

The AbstractControl for which to find the parent platform-specific UserControl. Can be null.

Returns

UserControl

The parent platform-specific UserControl if found; otherwise, null.

Remarks

A platform-specific user control is identified as an AbstractControl that has IsPlatformControl set to true and is of type UserControl. The method traverses the parent hierarchy of the specified control to locate such a control.