如何在设计时打开 WPF 菜单? [英] How do I open a WPF menu at design-time?
本文介绍了如何在设计时打开 WPF 菜单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在 WPF 中设计菜单样式,并想查看它的外观,而无需启动应用程序来打开菜单.
I'm styling a menu in WPF and would like to see how it looks, without having to launch the application to open the menu.
有没有办法在设计时保持菜单打开(以便我可以看到菜单项),以便我可以随时查看更改?
Is there a way to keep the menu open (so I can see the menu items) at design-time, so I can see the changes as I go?
我目前只有 Visual Studio 2010 可以使用.
I currently only have Visual Studio 2010 to work with.
推荐答案
您可以设置 IsSubmenuOpen="True",但是如果您单击其他地方,菜单将关闭.再次设置为打开.
You can set IsSubmenuOpen="True", but if you click somewhere else, menu will close. Set it again to open.
这篇关于如何在设计时打开 WPF 菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文