# Application class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[Handler(Application.IHandler)]
public class Application : Widget
```

Starting point for any UI application

**Remarks:** This class is used to start an application. When you are using Eto.Forms within an existing application, you can use the [Application.Attach(object)](https://eto.picoe.ca/api/type/eto.forms.application/attach.md) method.

## Constructors

- [Application](https://eto.picoe.ca/api/type/eto.forms.application/ctor.md): (3 overloads) Initializes a new instance of the [Application](https://eto.picoe.ca/api/type/eto.forms.application.md) class.

## Fields

- [IsActiveChangedEvent](https://eto.picoe.ca/api/type/eto.forms.application/isactivechangedevent.md): (static) Identifier for handlers when attaching the [Application.IsActiveChanged](https://eto.picoe.ca/api/type/eto.forms.application/isactivechanged.md) event
- [NotificationActivatedEvent](https://eto.picoe.ca/api/type/eto.forms.application/notificationactivatedevent.md): (static) Identifier for handlers when attaching the [Application.NotificationActivated](https://eto.picoe.ca/api/type/eto.forms.application/notificationactivated.md) event
- [TerminatingEvent](https://eto.picoe.ca/api/type/eto.forms.application/terminatingevent.md): (static) Identifier for handlers when attaching the [Application.Terminating](https://eto.picoe.ca/api/type/eto.forms.application/terminating.md) event
- [ThemeChangedEvent](https://eto.picoe.ca/api/type/eto.forms.application/themechangedevent.md): (static) Identifier for the [Application.ThemeChanged](https://eto.picoe.ca/api/type/eto.forms.application/themechanged.md) event.
- [UnhandledExceptionEvent](https://eto.picoe.ca/api/type/eto.forms.application/unhandledexceptionevent.md): (static) Identifier for handlers when attaching the [Application.UnhandledException](https://eto.picoe.ca/api/type/eto.forms.application/unhandledexception.md) event

## Properties

- [AlternateModifier](https://eto.picoe.ca/api/type/eto.forms.application/alternatemodifier.md): Gets the alternate modifier for shortcuts.
- [BadgeLabel](https://eto.picoe.ca/api/type/eto.forms.application/badgelabel.md): Gets or sets the badge label on the application icon in the dock, taskbar, etc.
- [CommonModifier](https://eto.picoe.ca/api/type/eto.forms.application/commonmodifier.md): Gets the common modifier for shortcuts.
- [Instance](https://eto.picoe.ca/api/type/eto.forms.application/instance.md): (static) Gets the current application instance
- [IsActive](https://eto.picoe.ca/api/type/eto.forms.application/isactive.md): Gets a value indicating that the application is currently the active application.
- [IsUIThread](https://eto.picoe.ca/api/type/eto.forms.application/isuithread.md): Gets a value indicating that the current thread is on the UI thread for this Application instance.
- [MainForm](https://eto.picoe.ca/api/type/eto.forms.application/mainform.md): Gets or sets the main form for your application.
- [Name](https://eto.picoe.ca/api/type/eto.forms.application/name.md): Gets or sets the name of your application
- [QuitIsSupported](https://eto.picoe.ca/api/type/eto.forms.application/quitissupported.md): Gets a value indicating whether this [Application](https://eto.picoe.ca/api/type/eto.forms.application.md) supports the [Application.Quit()](https://eto.picoe.ca/api/type/eto.forms.application/quit.md) operation.
- [Theme](https://eto.picoe.ca/api/type/eto.forms.application/theme.md): Gets or sets the current visual theme of the application.
- [UIThreadCheckMode](https://eto.picoe.ca/api/type/eto.forms.application/uithreadcheckmode.md): Gets or sets the UI thread check mode which can be used to troubleshoot or ensure that all UI code is executed in the UI thread.
- [Windows](https://eto.picoe.ca/api/type/eto.forms.application/windows.md): Gets an enumeration of windows currently open in the application.

## Methods

- [AsyncInvoke](https://eto.picoe.ca/api/type/eto.forms.application/asyncinvoke.md): Invoke the action asynchronously on the UI thread
- [Attach](https://eto.picoe.ca/api/type/eto.forms.application/attach.md): Attach the application to an already-running native application with the same platform.
- [EnsureUIThread](https://eto.picoe.ca/api/type/eto.forms.application/ensureuithread.md): Ensures the current thread is the main/UI thread
- [GetCallback](https://eto.picoe.ca/api/type/eto.forms.application/getcallback.md): Gets an instance of an object used to perform callbacks to the widget from handler implementations
- [Invoke<T>](https://eto.picoe.ca/api/type/eto.forms.application/invoke.md): (2 overloads) Invoke the specified function on the UI thread returning its value after the execution is complete.
- [InvokeAsync](https://eto.picoe.ca/api/type/eto.forms.application/invokeasync.md): (2 overloads) Invokes the specified action on the UI thread asynchronously with a Task.
- [Localize](https://eto.picoe.ca/api/type/eto.forms.application/localize.md): Localizes the specified text for the current locale, or provide alternative text for system supplied strings.
- [OnInitialized](https://eto.picoe.ca/api/type/eto.forms.application/oninitialized.md): Raises the [Application.Initialized](https://eto.picoe.ca/api/type/eto.forms.application/initialized.md) event.
- [OnIsActiveChanged](https://eto.picoe.ca/api/type/eto.forms.application/onisactivechanged.md): Raises the [Application.IsActiveChanged](https://eto.picoe.ca/api/type/eto.forms.application/isactivechanged.md) event
- [OnLocalizeString](https://eto.picoe.ca/api/type/eto.forms.application/onlocalizestring.md): Triggers the [Application.LocalizeString](https://eto.picoe.ca/api/type/eto.forms.application/localizestring.md) event.
- [OnNotificationActivated](https://eto.picoe.ca/api/type/eto.forms.application/onnotificationactivated.md): Raises the [Application.NotificationActivated](https://eto.picoe.ca/api/type/eto.forms.application/notificationactivated.md) event
- [OnTerminating](https://eto.picoe.ca/api/type/eto.forms.application/onterminating.md): Raises the [Application.Terminating](https://eto.picoe.ca/api/type/eto.forms.application/terminating.md) event.
- [OnThemeChanged](https://eto.picoe.ca/api/type/eto.forms.application/onthemechanged.md): Raises the [Application.ThemeChanged](https://eto.picoe.ca/api/type/eto.forms.application/themechanged.md) event.
- [OnUnhandledException](https://eto.picoe.ca/api/type/eto.forms.application/onunhandledexception.md): Raises the unhandled exception event.
- [Open](https://eto.picoe.ca/api/type/eto.forms.application/open.md): Open the specified file or url with its associated application.
- [Quit](https://eto.picoe.ca/api/type/eto.forms.application/quit.md): Quits the application
- [Restart](https://eto.picoe.ca/api/type/eto.forms.application/restart.md): Restarts the application
- [Run](https://eto.picoe.ca/api/type/eto.forms.application/run.md): (3 overloads) Runs the application and begins the main loop.
- [RunIteration](https://eto.picoe.ca/api/type/eto.forms.application/runiteration.md): Advanced. Runs an iteration of the main UI loop when you are blocking the UI thread with logic.

## Events

- [Initialized](https://eto.picoe.ca/api/type/eto.forms.application/initialized.md): Occurs when the application is initialized
- [IsActiveChanged](https://eto.picoe.ca/api/type/eto.forms.application/isactivechanged.md): Occurs when the [Application.IsActive](https://eto.picoe.ca/api/type/eto.forms.application/isactive.md) property is changed, which tracks whether the application is currently active or not.
- [LocalizeString](https://eto.picoe.ca/api/type/eto.forms.application/localizestring.md): Event to handle when a string needs to be localized
- [NotificationActivated](https://eto.picoe.ca/api/type/eto.forms.application/notificationactivated.md): Occurs when a notification is clicked by the user that was previously displayed.
- [Terminating](https://eto.picoe.ca/api/type/eto.forms.application/terminating.md): Occurs when the application is terminating.
- [ThemeChanged](https://eto.picoe.ca/api/type/eto.forms.application/themechanged.md): Occurs when the [Application.Theme](https://eto.picoe.ca/api/type/eto.forms.application/theme.md) has changed.
- [UnhandledException](https://eto.picoe.ca/api/type/eto.forms.application/unhandledexception.md): Occurs when an unhandled exception occcurs.

## Inherited Members

- From [Widget](https://eto.picoe.ca/api/type/eto.widget.md): [ControlObject](https://eto.picoe.ca/api/type/eto.widget/controlobject.md), [Handler](https://eto.picoe.ca/api/type/eto.widget/handler.md), [ID](https://eto.picoe.ca/api/type/eto.widget/id.md), [IsDisposed](https://eto.picoe.ca/api/type/eto.widget/isdisposed.md), [NativeHandle](https://eto.picoe.ca/api/type/eto.widget/nativehandle.md), [Platform](https://eto.picoe.ca/api/type/eto.widget/platform.md), [Properties](https://eto.picoe.ca/api/type/eto.widget/properties.md), [Style](https://eto.picoe.ca/api/type/eto.widget/style.md), [StyleChanged](https://eto.picoe.ca/api/type/eto.widget/stylechanged.md), [Dispose](https://eto.picoe.ca/api/type/eto.widget/dispose.md), [Initialize](https://eto.picoe.ca/api/type/eto.widget/initialize.md), [OnStyleChanged](https://eto.picoe.ca/api/type/eto.widget/onstylechanged.md), [ToString](https://eto.picoe.ca/api/type/eto.widget/tostring.md)
