我如何在WPF中添加一个菜单作为menustrip的形式 [英] How i can add a Menu in WPF as menustrip in forms
本文介绍了我如何在WPF中添加一个菜单作为menustrip的形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在WPF中添加菜单作为menustrip的表格
可以有人举个例子
提前感谢
How i can add a Menu in WPF as menustrip in forms
can somebody give an example
thanks in advance
推荐答案
您只需要使用类System.Windows.Controls.Menu
:
http://msdn.microsoft.com/en-us/library/system。 windows.controls.menu.aspx [ ^ ],
http:// msdn.microsoft.com/en-us/library/ms747430.aspx [ ^ ]。
在此处查找示例: http://go.microsoft.com/fwlink/?LinkID=160053 [ ^ ]。
参见:
http://wpftutorial.net/Menus.html [ ^ ],
http://www.c-sharpcorner.com/uploadfile/mahesh/menus-in-wpf/ [ ^ ]。
你会发现很多更多,如果你是谷歌,但如果你从我引用它的文章开始就足够了。
-SA
You just need to use the classSystem.Windows.Controls.Menu
:
http://msdn.microsoft.com/en-us/library/system.windows.controls.menu.aspx[^],
http://msdn.microsoft.com/en-us/library/ms747430.aspx[^].
Find a sample here: http://go.microsoft.com/fwlink/?LinkID=160053[^].
See also:
http://wpftutorial.net/Menus.html[^],
http://www.c-sharpcorner.com/uploadfile/mahesh/menus-in-wpf/[^].
You would find a lot more if you Google, but what if you starts with the articles I referenced it will be quite enough.
—SA
这帮助我从WinForms转到WPF:
msdn.microsoft.com/en-US/library/ms750559(v = vs.110).aspx
WPF非常简单,当你启动时理解它:)
This helped me to go from WinForms to WPF:
msdn.microsoft.com/en-US/library/ms750559(v=vs.110).aspx
WPF is pretty simple, when you start understanding it :)
这篇关于我如何在WPF中添加一个菜单作为menustrip的形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文