xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.

◆ top_level_control()

virtual std::optional<control_ref> xtd::forms::control::top_level_control ( ) const

Gets the parent control that is not parented by another Windows Forms control. Typically, this is the outermost Form that the control is contained in.

The control that represents the top-level control that contains the current control.