为 WPF 创建插件架构的技巧
我正在从 Winforms 切换到 WPF。在 Winforms 中,我有一个插件架构,其中用户控件托管在 Winform 中。有人对为 WPF 创建插件架构有什么建议吗?我想团结社区中开发人员的力量来进一步扩展我的产品,因此我相信我的应用程序有一个可扩展的框架。我刚刚启动 WPF,所以我不确定最好的方法是什么。
谢谢。
I'm making the switch from Winforms to WPF. In Winforms I have a plug-in architecture where a user control is hosted in a Winform. Does anyone have any suggestions on creating a plug-in architecture for WPF? I want to rally the forces of the developers in my community to further extend my products so I believe in an extensible framework for my apps. I'm just starting WPF so I'm not sure what the best way is to go about this.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看托管扩展性框架
Have a look into the Managed Extensibility Framework
您可能会发现有关 WPF 应用程序模块化架构的文章也很有趣。请注意,在这方面插件与模块是一样的。
WPF 应用程序框架 (WAF) 的信息管理器示例应用程序展示了如何应用这些概念来创建插件建筑学。它也使用 MEF 来发现和加载插件。
You might find the article about modular architecture for WPF applications interessting as well. Please not that a plugin is the same thing as a module in this aspect.
The Information Manager sample application of the WPF Application Framework (WAF) shows how to apply these concepts to create a plug-in architecture. It uses MEF as well to discover and load the Plug-Ins.