53 std::optional<const_form_ref>
main_form() const noexcept;
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Represents an event.
Definition event.hpp:21
Specifies the contextual information about an application thread.
Definition application_context.hpp:26
std::any tag() const noexcept
Gets an object that contains data about the control.
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.hpp:93
void exit_thread()
Terminates the message loop of the thread.
virtual void exit_thread_core()
Terminates the message loop of the thread.
std::optional< const_form_ref > main_form() const noexcept
Gets the form to use as context.
application_context()
Initializes a new instance of the application_context class with no context.
virtual void on_main_form_closed(object &sender, const event_args &e)
Calls ExitThreadCore(), which raises the ThreadExit event.
application_context(const form &main_form) noexcept
Initializes a new instance of the application_context class with the specified Form.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
generic_event_handler<> event_handler
Represents the method that will handle an event that has no event data.
Definition event_handler.hpp:32
std::optional< type_t > optional
Represents the null_opt alias on std::nullopt_t.
Definition optional.hpp:175
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
@ any
Indicates that all styles except allow_binary_specifier, allow_octal_specifier and allow_hex_specifie...
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10