Method GetParentPage
GetParentPage(AbstractControl?)
Gets parent Page for the specified control. If control is not attached to the parent, this function returns main page.
public static Page? GetParentPage(AbstractControl? control)
Parameters
controlAbstractControlControl for which to get the parent page.