Click or drag to resize

Application Class

Starting point for any UI application
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public class Application : Widget

The Application type exposes the following members.

Constructors
  NameDescription
Public methodApplication
Initializes a new instance of the Application class.
Public methodApplication(String)
Initializes a new instance of the Application class with the specified platform type
Public methodApplication(Platform)
Initializes a new instance of the Application class with the specified platform
Top
Properties
  NameDescription
Public propertyAlternateModifier
Gets the alternate modifier for shortcuts.
Public propertyBadgeLabel
Gets or sets the badge label on the application icon in the dock, taskbar, etc.
Public propertyCommonModifier
Gets the common modifier for shortcuts.
Public propertyStatic memberInstance
Gets the current application instance
Public propertyMainForm
Gets or sets the main form for your application.
Public propertyName
Gets or sets the name of your application
Public propertyQuitIsSupported
Gets a value indicating whether this Application supports the Quit operation.
Public propertyWindows
Gets an enumeration of windows currently open in the application.
Top
Methods
  NameDescription
Public methodAsyncInvoke
Invoke the action asynchronously on the UI thread
Public methodAttach
Attach the application to an already-running native application with the same platform.
Protected methodGetCallback
Gets an instance of an object used to perform callbacks to the widget from handler implementations
(Overrides WidgetGetCallback.)
Public methodInvoke(Action)
Invoke the specified action on the UI thread, blocking the current execution until it is complete.
Public methodInvokeT(FuncT)
Invoke the specified function on the UI thread returning its value after the execution is complete.
Public methodInvokeAsync(Action)
Invokes the specified action on the UI thread asynchronously with a Task.
Public methodInvokeAsyncT(FuncT)
Invokes the specified function on the UI thread asynchronously and return the result in a Task.
Public methodLocalize
Localizes the specified text for the current locale, or provide alternative text for system supplied strings.
Protected methodOnInitialized
Raises the Initialized event.
Protected methodOnLocalizeString
Triggers the LocalizeString event.
Protected methodOnNotificationActivated
Raises the NotificationActivated event
Protected methodOnTerminating
Raises the Terminating event.
Protected methodOnUnhandledException
Raises the unhandled exception event.
Public methodOpen
Open the specified file or url with its associated application.
Public methodQuit
Quits the application
Public methodRestart
Restarts the application
Public methodRun
Runs the application and begins the main loop.
Public methodRun(Dialog)
Runs the application with the specified dialog and begins the main loop.
Public methodRun(Form)
Runs the application with the specified mainForm and begins the main loop.
Public methodRunIteration
Advanced. Runs an iteration of the main UI loop when you are blocking the UI thread with logic.
Top
Events
  NameDescription
Public eventInitialized
Occurs when the application is initialized
Public eventLocalizeString
Event to handle when a string needs to be localized
Public eventNotificationActivated
Occurs when a notification is clicked by the user that was previously displayed.
Public eventTerminating
Occurs when the application is terminating.
Public eventUnhandledException
Occurs when an unhandled exception occcurs.
Top
Fields
  NameDescription
Public fieldStatic memberNotificationActivatedEvent
Identifier for handlers when attaching the NotificationActivated event
Public fieldStatic memberTerminatingEvent
Identifier for handlers when attaching the Terminating event
Public fieldStatic memberUnhandledExceptionEvent
Identifier for handlers when attaching the UnhandledException event
Top
Remarks
This class is used to start an application. When you are using Eto.Forms within an existing application, you can use the Attach(Object) method.
See Also