TrayIcon
最后更新于
最后更新于
The TrayIcon
control allows an Avalonia application to display an icon and a native menu in the system tray. It is supported on Windows, macOS and some Linux distributions (confirmed to work on Ubuntu).
Property | Description |
---|---|
The TrayIcon
is used with a NativeMenu
. It has the same capabilities and can be used with commands, according to the MVVM design pattern.
In the Application.xaml
file :
Icon
Icon to display on the tray, from the assets
ToolTipText
Text displayed upon hovering the icon