A cross-platform C# library to display a notification icon in the taskbar notification area ("tray"). Lightweight package with no dependencies.
Features
- Buttons
- Checkboxes
- Disabled items
- Nested menus
- Updating the menu in runtime
- Destroying the icon from a different thread
usingNotificationIcon.NET;stringiconImagePath=@"/path/to/icon.png";//For Windows, use the ".ico" file format. Otherwise, use ".png". Absolute path recommended.NotifyIconicon=NotifyIcon.Create(iconImagePath,newList<MenuItem>(){newMenuItem("Example Button"),newMenuItem("Example Checkbox"){IsChecked=true,Click=(s,e)=>{MenuItemme=(MenuItem)s!;me.IsChecked=!me.IsChecked;}}});icon.Show();//Use icon.Dispose() to hideNote: this is not required to use the library.
- To build the C# project:
dotnet build --configuration Release - The native libraries are already compiled in
prebuilt/.- To build them yourself, see native/README.md.