Replies: 1 comment
-
|
If someone can elevate this to the WinUI team, I'm willing to open the same request in the WinUI repo. Here's our code: If you are able to, you can try reach out the Your Phone team since it has the tray icon experience while it's a WinUI app. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
WinUI currently has no built-in tray icon API.
Developers must use raw Win32 (
Shell_NotifyIcon), hidden windows, and message hooks just to add a tray icon.A simple
<TrayIcon />control would make tray icon management much easier and fit naturally into desktop WinUI apps.Example:
Events
It supports basically these interaction categories:
WM_LBUTTONDOWN&WM_LBUTTONUP)WM_RBUTTONDOWN&WM_RBUTTONUP)WM_MBUTTONDOWN&WM_MBUTTONUP)WM_LBUTTONDBLCLK/WM_RBUTTONDBLCLK/WM_MBUTTONDBLCLK)WM_MOUSEMOVE)WM_CONTEXTMENU)NIN_SELECT/NIN_KEYSELECT)NIN_BALLOONSHOW/NIN_BALLOONHIDE/NIN_BALLOONTIMEOUT/NIN_BALLOONUSERCLICK)NIN_POPUPOPEN/NIN_POPUPCLOSE)Beta Was this translation helpful? Give feedback.
All reactions