An application window is a high-level "main window", with built-in support for an optional menu bar with standard menus, an optional toolbar, and an optional status line.
Creating an application window involves the following steps:
- creating an instance of
ApplicationWindow
- assigning the window to a window manager (optional)
- opening the window by calling
open
Only on the last step, when the window is told to open, are the window's shell and widget tree created. When the window is closed, the shell and widget tree are disposed of and are no longer referenced, and the window is automatically removed from its window manager. Like all windows, an application window may be reopened.
An application window is also a suitable context in which to perform long-running operations (that is, it implements IRunnableContext
).