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!
.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!