hardcodet / wpf-notifyicon

NotifyIcon (aka system tray icon or taskbar icon) for the WPF platform
Other
810 stars 125 forks source link

The MainView cannot trigger the mouse events when TrayPopup is activated. #62

Closed SundayRX closed 2 years ago

SundayRX commented 2 years ago

.NET5.0 WPF WindowChrome

I used the custom TrayPoup as the tray right click menu. When I right-click to activate TrayPopup, none of the buttons on the main view respond to mouse move.It looks like a new window has been opened using the "ShowDialog" function. After clicking a button in TrayPoup, Traypopup is turned off by setting the “Visibility.Collapsed” property of Traypopup.After turning off TrayPoup, the main view still cannot trigger the mouse move event until you click on the form with the mouse.

I tried using Window.Focus function but it didn't work.

Am I using it the wrong way?Or if there are other solutions, could you please ask me,thank you very much!