设置弹出窗口中的上下文菜单弹出WinJS.UI.Menu? [英] Context menu flyout WinJS.UI.Menu in settings flyout?

查看:92
本文介绍了设置弹出窗口中的上下文菜单弹出WinJS.UI.Menu?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户点击我的应用中的版本号时,我想显示一个弹出菜单"about"设置窗格。然而,似乎因为设置窗格本身已经是一个弹出窗口(appbar clickeater处于活动状态,设置为"display:block")并显示
a WinJS.UI.Menu将激活弹出菜单(用于显示的菜单) )以便食客在到达菜单点击处理程序之前抓住菜单的点击。


有没有解决这个限制的方法?可以在设置窗格中显示WinJS.UI.Menu吗?

解决方案

您能否共享您尝试实现此目的的代码....

I would like to display a flyout menu when the user clicks the version number in my apps "about" settings pane. However it seems that since the settings pane is already a flyout itself (the appbar clickeater is active, set to "display:block") and displaying a WinJS.UI.Menu will activate the flyout eater (for the displayed menu) so that clicks to the menu are catched by the eaters before they reach the menu click handler.

Is there a way around this limitation? Can WinJS.UI.Menu not be displayed in the settings pane?

解决方案

Can you share the code, with which you are trying to achieve this....


这篇关于设置弹出窗口中的上下文菜单弹出WinJS.UI.Menu?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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