Skip to content

DiGi.UI.Windows.Classes

github-actions[bot] edited this page Jul 15, 2026 · 2 revisions

DiGi.UI.Windows.Classes Namespace

Classes

TrayApplicationContext<TWindow> Class

Provides a base application context for applications that reside in the system tray and manage a specific window type.

public abstract class TrayApplicationContext<TWindow> : System.Windows.Forms.ApplicationContext
    where TWindow : System.Windows.Window

Type parameters

TWindow

The type of the Window managed by this context, which must inherit from System.Windows.Window.

Inheritance System.Object → System.Windows.Forms.ApplicationContext → TrayApplicationContext<TWindow>

Constructors

TrayApplicationContext(string) Constructor

Initializes a new instance of the TrayApplicationContext<TWindow> class.

public TrayApplicationContext(string text);

Parameters

text System.String

The text to display as a tooltip when hovering over the tray icon.

Fields

TrayApplicationContext<TWindow>.NotifyIcon Field

The system tray icon used for application notifications and interaction.

protected readonly NotifyIcon? NotifyIcon;

Field Value

System.Windows.Forms.NotifyIcon

Methods

TrayApplicationContext<TWindow>.GetWindow() Method

When overridden in a derived class, returns the window instance associated with this application context.

protected abstract TWindow GetWindow();

Returns

TWindow
The TWindow instance.