VSTO WPF ContextMenu.MenuItem单击任何一个TaskPane外面没有提出 [英] VSTO WPF ContextMenu.MenuItem Click outside a TaskPane not raised

查看:241
本文介绍了VSTO WPF ContextMenu.MenuItem单击任何一个TaskPane外面没有提出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当光标在任务窗格之外时,不会引发点击事件形式的上下文菜单项。
我不知道如何使它工作。
90%的时间,点击是在任务窗格之外。

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 task Pane.

当打开上下文菜单时,子菜单通常显示在任务窗格外(见下图) 。
在这种情况下,上下文菜单中的点击事件不会出现。

When the context menu is openned, the sub menus are often displayed outside the task pane (see picture below). In such cases, the click event from the context Menu is not raised.

我绝对不知道如何使这项工作。

I have absolutly no idea how to make this work.

任何想法?

推荐答案

自定义任务窗格具有WPF上下文菜单的焦点问题。查看这里

The Custom Task Pane has focus problems with WPF Context Menus. Look here.

我有同样的问题。其实我使用了一个推荐的解决方法( Dispatcher Frame )。正在工作,但我对这个笨拙的解决方案感到不高兴。

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.

这篇关于VSTO WPF ContextMenu.MenuItem单击任何一个TaskPane外面没有提出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆