如何将新项添加到文件菜单 [英] How to add a new item to the file menu
问题描述
hii
我需要在文件中添加一个项目菜单,说测试..当我在
测试时,它应该去一个表格......任何人都可以帮助我....
prasanth
据我所知,您需要创建一个ribbonUI。使用Orcas beta 1,您无法使用设计器自定义办公室菜单,因此您需要使用XML进行自定义。
添加新的项目到您的项目。选择"功能区(XML)"。在功能区xml中,您可以在功能区模式下添加officeMenu节点。从这里您可以创建按钮,菜单等。你还得到一个代码隐藏文件来连接功能区和你的回调。
在MSDN上有一些很好的文章。
好看。
hii
I need to add a an item to the file menu,say test..and when i am cliking in the
test it should go to a form..any one can help me....
prasanth
As far as I know, you need to create a ribbonUI. With Orcas beta 1 you cannot customize the office menu with the designer, so you'll need to do it with XML.
Add a new item to your project. Select "Ribbon (XML)". In the ribbon xml you can add a officeMenu-node within the ribbon mode. From here you can create buttons, menus and more. You also get a code behind file to hook up the ribbon and your callbacks.
There are some nice articles about this on MSDN.
Good look.
这篇关于如何将新项添加到文件菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!