Table of Contents

Class ApplicationContext

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Specifies the contextual information about an application thread.

public class ApplicationContext : BaseComponent, IBaseObject, IDisposableObject, IComponent, IDisposable
Inheritance
ApplicationContext
Implements

Constructors

ApplicationContext()

Initializes a new instance of the ApplicationContext class with no context.

ApplicationContext(Window?)

Initializes a new instance of the ApplicationContext class with the specified Window.

Properties

MainForm

Gets or sets the Window to use as context.

Methods

DisposeManaged()

Override to dispose managed resources. Here we dispose all used object references.

ExitThread()

Terminates the message loop of the thread.

ExitThreadCore()

Terminates the message loop of the thread.

OnMainFormClosed(object?, EventArgs)

Calls ExitThreadCore(), which raises the ThreadExit event.

Events

ThreadExit

Occurs when the message loop of the thread should be terminated, by calling ExitThread().