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
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>
Initializes a new instance of the TrayApplicationContext<TWindow> class.
public TrayApplicationContext(string text);
text System.String
text
The text to display as a tooltip when hovering over the tray icon.
The system tray icon used for application notifications and interaction.
protected readonly NotifyIcon? NotifyIcon;
System.Windows.Forms.NotifyIcon
When overridden in a derived class, returns the window instance associated with this application context.
protected abstract TWindow GetWindow();
TWindow The TWindow instance.
There was an error while loading. Please reload this page.