The Click Event form a Context Menu Item is not raised when the cursor is outside the taskpane.
I have no idea how get it working.
90% of the time, the click is outside the
The Custom Task Pane has focus problems with WPF Context Menus. Look here.
I have the same problems. Actually I use one of the recommended workarounds (Dispatcher Frame). Is is working, but I am not very happy with this clumsy solution.