简体   繁体   English

建立像应用程序一样的Visual Studio,需要输入

[英]Building Visual studio like application, need inputs

I am working on a Visual studio like application ie have a toolbox, an editor and property grid similar to VS. 我正在像应用程序这样的Visual Studio上工作,即具有类似于VS的工具箱,编辑器和属性网格。

User can drag and drop the controls(custom and third party) to the editor window and perform operations like resize, move, align, group etc.; 用户可以将控件(自定义和第三方)拖放到编辑器窗口,并执行诸如调整大小,移动,对齐,分组等操作; Properties of that control needs to be displayed in property grid and user can update them from there. 该控件的属性需要显示在属性网格中,用户可以从那里更新它们。

As per my current understanding I will have to extend the Canvas to create my own editor and and Interface for controls which it supports; 根据我目前的理解,我将不得不扩展Canvas以创建自己的编辑器和用于其支持的控件的Interface; Each supported control will have to implement this interface so that it can be placed in our editor. 每个受支持的控件都必须实现此接口,以便可以将其放置在我们的编辑器中。

Something similar to this - http://www.codeproject.com/KB/WPF/WPFDiagramDesigner_Part4.aspx 与此类似的内容-http: //www.codeproject.com/KB/WPF/WPFDiagramDesigner_Part4.aspx

Looking forward for any kind of help, comment or links. 期待任何形式的帮助,评论或链接。

I have been working on a generic framework Wide to create VS like applications. 我一直在研究通用框架Wide,以创建类似VS的应用程序。

Update: Here is the CodeProject article on how to use the framework. 更新:这是有关如何使用框架的CodeProject文章

Wide comes with two modules and various out of the box functions: Wide带有两个模块和各种现成的功能:

  • Core module (Required) 核心模块(必填)
    • Used for customizable splash screen 用于可定制的启动画面
    • Used for Menus (supports regular menus with icon, checkable menus) 用于菜单(支持带图标的常规菜单,可检查的菜单)
    • Used for Toolbar (menu view model can be reused for toolbars) 用于工具栏(菜单视图模型可重复用于工具栏)
      • Multiple toolbars can be added to the IDE (check demo) 可以将多个工具栏添加到IDE(检查演示)
    • Themes (VS2010, VS2012 Light theme and no theme) 主题(VS2010,VS2012 Light主题和无主题)
      • ThemeManager to add/remove themes ThemeManager添加/删除主题
    • Used for Statusbar (in development) 用于状态栏(开发中)
    • Open file service with participatory handlers (could be based on extension or even file contents) 具有参与性处理程序的开放文件服务(可以基于扩展名甚至文件内容)
    • Save and restore layout along with opening documents 保存和还原布局以及打开文档
  • Logger module (For the logging tool) 记录器模块(用于记录工具)

If this is not what you are looking for - please down vote and consider it as a shameless plug. 如果这不是您想要的-请否决并将其视为无耻的插件。

Sample screen shots: 屏幕截图示例:

Visual studio 2012 style (still under development) Visual Studio 2012风格(仍在开发中) VS2012风格

Visual studio 2010 style Visual Studio 2010风格 VS2010风格

If WPF is a requirement, wait for the VS2010 release and use the Visual Studio Shell in either isolated mode or integrated mode . 如果需要WPF,请等待VS2010版本并在隔离模式集成模式下使用Visual Studio Shell。 Otherwise you can use the Visual Studio 2008 Shell isolated or integrated. 否则,您可以单独或集成使用Visual Studio 2008 Shell。

You'll get the docking support, addin model, editors with highlight and much more almost for free that way. 您将免费获得对接支持,插件模型,带有突出显示的编辑器,以及几乎更多免费的工具。

Finally, I used the Diagram designer approch to build my application. 最后,我使用了图表设计器方法来构建我的应用程序。 Although, I had to create my custom property grid which was painful. 尽管,我不得不创建自己的自定义属性网格,这很痛苦。

Recently I came across following post which suggests that .Net DesignSurface can be used for building this kind of application - 最近,我遇到了以下帖子,该帖子建议.Net DesignSurface可以用于构建这种应用程序-

How to create an UI Designer utility? 如何创建UI Designer实用程序?

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

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