简体   繁体   中英

DSL. Is it possible to add commands to context menu item dynamically?

I have DSL Diagram builted in Visual Studio 2012 Ultimate. And I want to duplicate TFS functionality like in standard UML Diagrams in Visual Studio ( In my case Visual Studio 2012 Ultimate ). And I have one issue - Types of work items are different in different TFS projects types, which means that I need to add commands in run time. And I don't know how to add some commands to Context Menu dynamically. Is there any way?

我找到了答案:如何:动态添加菜单项http://msdn.microsoft.com/zh-cn/library/vstudio/bb166492.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM