Describe the bug
In macOS, TrayIcon created in the App.OnFrameworkInitializationCompleted method and thereafter will automatically appear in the menu bar.
To Reproduce
public override void OnFrameworkInitializationCompleted()
{
base.OnFrameworkInitializationCompleted();
.....
TrayIcon icon1 = new();
icon1.Icon = new WindowIcon("your icon path");
}
Or during program execution, new TrayIcon
Expected behavior
Should execute TrayIcon.SetIcons, or add to the corresponding TrayIcons to be displayed in the menu bar.
Avalonia version
11.2.3
OS
macOS
Additional context
No response
Describe the bug
In macOS, TrayIcon created in the
App.OnFrameworkInitializationCompletedmethod and thereafter will automatically appear in the menu bar.To Reproduce
Or during program execution, new TrayIcon
Expected behavior
Should execute
TrayIcon.SetIcons, or add to the correspondingTrayIconsto be displayed in the menu bar.Avalonia version
11.2.3
OS
macOS
Additional context
No response