xtd 0.2.0
Loading...
Searching...
No Matches

◆ main_form()

static std::optional< form_ref > xtd::forms::application::main_form ( )
static

Gets the optional main form owned by the application.

Returns
The optional main form.
Remarks
The return value doesn't necessarily contain the main form, as an application doesn't always have a main form. In fact, the xtd::forms::application method can be called with the xtd::forms::application_context class, which doesn't contain a main form.