Property IsVisibleInTray
| Edit this page View SourceIsVisibleInTray
Gets or sets a value indicating whether the window is shown in the system tray.
Declaration
public bool IsVisibleInTray { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
The system tray icon will use the same icon as Window's Taskbar icon, and tooltip will match the AppWindow.Title value. Double-clicking the icon restores the window if minimized and brings it to the front.
See IsShownInSwitchers to hide the window from the Alt+Tab switcher and task bar.
If you want to minimize the window to the tray, set this to true
and when WindowStateChanged is fired and changes to minimized,
hide it from the switcher.
tip
The taskbar icon will be used for the tray icon. You can update the taskbar icon by calling AppWindow.SetTaskbarIcon(string).
For more advanced scenarios where more control is needed over the tray, multiple icons or managing tooltip and icons separately from the window, see the TrayIcon class.