How to Detect a Right Click on Taskbar in WPF
Posted
by Zay
on Stack Overflow
See other posts from Stack Overflow
or by Zay
Published on 2010-04-05T16:46:21Z
Indexed on
2010/04/05
16:53 UTC
Read the original article
Hit count: 303
I've got a WPF application in C# that starts off with a loading dialog. As expected, a button for the app shows up in the Windows taskbar.
I would like to detect right-clicks that might be done to that button.
Ultimately, I hope to disable the right-click or simply have the loading dialog regain focus. I've seen that some people use custom libraries and packages (interop, for example) to achieve some Win32 functionality, but I'd personally like to avoid this. Furthermore, these libraries/packages appear to be specific to Windows Forms; I've not seen anything for WPF. Is it impossible to manipulate the taskbar's right-click in WPF?
© Stack Overflow or respective owner