TrayIcon
Overview
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).
Properties
Property | Description |
---|---|
| Icon to display on the tray, from the assets |
| Text displayed upon hovering the icon |
Menu
The TrayIcon
is used with a NativeMenu
. It has the same capabilities and can be used with commands, according to the MVVM design pattern.
Example usage
In the Application.xaml
file :
最后更新于