49 std::optional<const_form_ref>
main_form()
const noexcept;
53 std::optional<form_ref>
main_form() noexcept;
105 std::shared_ptr<data> data_;
Specifies the contextual information about an application thread.
Definition: application_context.h:24
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::any tag() const noexcept
Gets an object that contains data about the control.
application_context()
Initializes a new instance of the application_context class with no context.
event< application_context, event_handler > thread_exit
Occurs when the message loop of the thread should be terminated, by calling exit_thread().
Definition: application_context.h:89
Represents an event.
Definition: event.h:21
virtual void on_main_form_closed(object &sender, const event_args &e)
Calls ExitThreadCore(), which raises the ThreadExit event.
Indicates that all styles except allow_binary_specifier, allow_octal_specifier and allow_hex_specifie...
void exit_thread()
Terminates the message loop of the thread.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
std::optional< const_form_ref > main_form() const noexcept
Gets the form to use as context.
virtual void exit_thread_core()
Terminates the message loop of the thread.