简体   繁体   English

Visual Studio 2010 中的自定义 class 设计器

[英]Custom class designer in Visual Studio 2010

I made an application at the office which runs a bunch of ProcessManager objects which themselves run a bunch of Process objects.我在办公室做了一个应用程序,它运行一堆 ProcessManager 对象,这些对象本身运行一堆 Process 对象。 I have been thinking in creating a wizard to create automaticly the classes needed, but I want now to create a custom designer for creating and editing the classes.我一直在考虑创建一个向导来自动创建所需的类,但我现在想创建一个自定义设计器来创建和编辑类。 By designer, I mean like the LinqToSql designer and so on.设计师,我的意思是像 LinqToSql 设计师等等。 I wasn't able to find any information about it, or at least clear one.我无法找到任何有关它的信息,或者至少没有清楚的信息。 I've been looking at how to create a new editor for vs 2010 or add design-time ability, but none of theses researches helped me.我一直在研究如何为 vs 2010 创建新的编辑器或添加设计时功能,但这些研究都没有帮助我。 The ideal would be to have let's say ProcessManagerClass1.cs and ProcessManagerClass1.designer.cs and when opening the first one, it would open the custom designer.理想的情况是让我们说 ProcessManagerClass1.cs 和 ProcessManagerClass1.designer.cs 并且在打开第一个时,它将打开自定义设计器。 Do you know how to do it and give me some links for tutorials or documentation??你知道怎么做并给我一些教程或文档的链接吗?

Thank you for your help,谢谢您的帮助,

Vincent文森特

I would start with the Visualization and Modeling SDK for Visual Studio 2010 , which was formerly known as the Domain Specific Languages SDK.我将从Visual Studio 2010 的可视化和建模 SDK开始,它以前称为域特定语言 SDK。 It is the way to create custom designers in Visual Studio.这是在 Visual Studio 中创建自定义设计器的方法。 To use it, you first have to install the Visual Studio 2010 SDK ( SP1 here , but you may have to run them in order, which means this first , then the Visualization SDK , then SP1 )要使用它,您首先必须安装 Visual Studio 2010 SDK(此处为 SP1 ,但您可能必须按顺序运行它们,这意味着首先,然后是Visualization SDK ,然后是SP1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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