Application Class |
Namespace: Eto.Forms
The Application type exposes the following members.
| Name | Description | |
|---|---|---|
| Application |
Initializes a new instance of the Application class.
| |
| Application(String) |
Initializes a new instance of the Application class with the specified platform type
| |
| Application(Platform) |
Initializes a new instance of the Application class with the specified platform
|
| Name | Description | |
|---|---|---|
| AlternateModifier |
Gets the alternate modifier for shortcuts.
| |
| BadgeLabel |
Gets or sets the badge label on the application icon in the dock, taskbar, etc.
| |
| CommonModifier |
Gets the common modifier for shortcuts.
| |
| Instance |
Gets the current application instance
| |
| MainForm |
Gets or sets the main form for your application.
| |
| Name |
Gets or sets the name of your application
| |
| QuitIsSupported |
Gets a value indicating whether this Application supports the Quit operation.
| |
| Windows |
Gets an enumeration of windows currently open in the application.
|
| Name | Description | |
|---|---|---|
| AsyncInvoke |
Invoke the action asynchronously on the UI thread
| |
| Attach |
Attach the application to an already-running native application with the same platform.
| |
| GetCallback |
Gets an instance of an object used to perform callbacks to the widget from handler implementations
(Overrides WidgetGetCallback.) | |
| Invoke(Action) |
Invoke the specified action on the UI thread, blocking the current execution until it is complete.
| |
| InvokeT(FuncT) |
Invoke the specified function on the UI thread returning its value after the execution is complete.
| |
| InvokeAsync(Action) |
Invokes the specified action on the UI thread asynchronously with a Task.
| |
| InvokeAsyncT(FuncT) |
Invokes the specified function on the UI thread asynchronously and return the result in a Task.
| |
| Localize |
Localizes the specified text for the current locale, or provide alternative text for system supplied strings.
| |
| OnInitialized |
Raises the Initialized event.
| |
| OnLocalizeString |
Triggers the LocalizeString event.
| |
| OnNotificationActivated |
Raises the NotificationActivated event
| |
| OnTerminating |
Raises the Terminating event.
| |
| OnUnhandledException |
Raises the unhandled exception event.
| |
| Open |
Open the specified file or url with its associated application.
| |
| Quit |
Quits the application
| |
| Restart |
Restarts the application
| |
| Run |
Runs the application and begins the main loop.
| |
| Run(Dialog) |
Runs the application with the specified dialog and begins the main loop.
| |
| Run(Form) |
Runs the application with the specified mainForm and begins the main loop.
| |
| RunIteration |
Advanced. Runs an iteration of the main UI loop when you are blocking the UI thread with logic.
|
| Name | Description | |
|---|---|---|
| Initialized |
Occurs when the application is initialized
| |
| LocalizeString |
Event to handle when a string needs to be localized
| |
| NotificationActivated |
Occurs when a notification is clicked by the user that was previously displayed.
| |
| Terminating |
Occurs when the application is terminating.
| |
| UnhandledException |
Occurs when an unhandled exception occcurs.
|
| Name | Description | |
|---|---|---|
| NotificationActivatedEvent |
Identifier for handlers when attaching the NotificationActivated event
| |
| TerminatingEvent |
Identifier for handlers when attaching the Terminating event
| |
| UnhandledExceptionEvent |
Identifier for handlers when attaching the UnhandledException event
|