Method GetParentPlatformUserControl
GetParentPlatformUserControl(AbstractControl?)
Retrieves the parent platform-specific user control of the specified AbstractControl.
public static UserControl? GetParentPlatformUserControl(AbstractControl? control)
Parameters
controlAbstractControlThe 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.