WPF中的设计时间支持 [英] Design Time Support in WPF

查看:88
本文介绍了WPF中的设计时间支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



重新发布在这个论坛中....

我是这个WPF技术的新手,并且之前已经使用过Windows Forms。我在MSDN上阅读了几篇关于Windows Forms和WPF设计时架构之间比较的博客和文章。这些文章让我对WPF提供的设计时支持有所了解。我仍然没有几个查询开始使用WPF代替Windows窗体:

我目前的要求是使用WPF开发一个工具箱,它有一些自定义类型可以加载到它中,还可以开发一个PropertyGrid控件,用于在WPF Canvas上从工具箱中拖放时编辑对象的属性...我可以使用与Windows Forms一直使用的相同概念来实现我的Toolbox和PropertyGrid控件吗? >
我以前的实现,其中我使用Windows窗体,我使用了IComponent,ISite和IServiceContainer概念。使用这些,我能够在IDesignerHost中添加/访问IToolboxService,ISelectionService等服务,使用这些服务的组件是Sited。如果想在WPF中使用相同的实现方式,根据我在WPF上阅读的文章,我应该使用EditingContext吗?由于WPF体系结构中的组件/控件没有实现IComponent,因此没有通过ISite实现添加/访问服务的概念,不是吗?

我想知道是否有人可以建议我任何链接或文章,这种比较是以精心设计的方式完成的,首先,这可以帮助我。

Thanx提前:)....
Sowm

解决方案



等待帖子的响应....急需帮助....






BLOCKQUOTE>

Hi,

Reposting in this Forum....

I am new to this WPF technology and have worked with Windows Forms earlier. I have read few blogs and articles on MSDN on the comparison between the Windows Forms and WPF design time architecture. These articles gave me some insight into the design time support provided by WPF. Still i have few queries to start using WPF in the place of Windows Forms:

My current requirement is to develop, using WPF, a Toolbox which has some custom types to be loaded in it and also to develop a PropertyGrid control which is used to edit the properties of the objects when dragged and dropped from the Toolbox on a WPF Canvas...Can I use the same concepts that I have been using with Windows Forms to implement my this Toolbox and PropertyGrid control?

I my previous implementation wherein i used Windows Forms, i have used IComponent, ISite and IServiceContainer concepts. Using these, i was able to add/access services like IToolboxService, ISelectionService etc.. to/from the IDesignerHost with the components using these services being Sited. If the want to use the same style of implementation within WPF, as per the articles that i have read on WPF, should i use EditingContext? As the components/controls in the WPF architecture does not implement IComponent, there is no concept of adding/accessing the Services through the ISite implementation, isn't it?

I would want to know if anyone can suggest me any link or article where this kind of comparison is done in an elaborate manner, to start with, which can help me in .

Thanx in advance:)....
Sowm

解决方案

Hi,
 
 Awaiting response for the post....help needed urgently....

 
 --Sowm


这篇关于WPF中的设计时间支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆