WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly.
Describe the bug
Calling Unregister on NotifyIcon has no effect.
To Reproduce
Steps to reproduce the behavior:
Call Unregister
Icon does not disappear from tray menu.
Expected behavior
Tray icon should go away.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Windows 11
.NET: .net6
Version: 2.0.1
Additional context
Looking at the code, ShellIconData is not assigned in public static bool Register(Controls.NotifyIcon notifyIcon, HwndSource parentSource) which is in TrayManager line 47. Looking at the code we should assign the shellIconData returned from interop call back to notifyIcon.ShellIconData.
Describe the bug
Calling
Unregister
onNotifyIcon
has no effect.To Reproduce
Steps to reproduce the behavior:
Unregister
Expected behavior
Tray icon should go away.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Looking at the code,
ShellIconData
is not assigned inpublic static bool Register(Controls.NotifyIcon notifyIcon, HwndSource parentSource)
which is inTrayManager
line 47. Looking at the code we should assign theshellIconData
returned from interop call back tonotifyIcon.ShellIconData
.