如何使用WF和WPF进行项目? [英] How to make a project with WF and WPF?
问题描述
你好
我有一个使用大量WF的项目.但是后来我发现需要使用2个或更多WPF.因此,众所周知,这将是一件容易的事,因为它将带有一些错误.
I have a project that uses alot WF. But then I came into a point that I needed to use 2 or more WPFs. So as every one knows that this won't be an easy task to do,since it will be carried with some errors.
那怎么办呢?
推荐答案
我有一个使用大量WF的项目.但是后来我发现需要使用2个或更多WPF.
I have a project that uses alot WF. But then I came into a point that I needed to use 2 or more WPFs.
2个或更多WPF是什么?
2 or more WPF what?
您可以使用ElementHost容器以Windows形式托管WPF控件.在此处查看有关在Windows窗体中托管WPF控件的信息
http://msdn.microsoft.com/en-us/library/ms742215.aspx
You can host WPF controls in a Windows form using the ElementHost container. See here for hosting WPF controls in a Windows Form
http://msdn.microsoft.com/en-us/library/ms742215.aspx
您的WF应用程序可能不需要控件-它可能仅需要一些WPF功能.对于Instnace,您可能希望在Windows窗体中制作动画3D图形. ElementHost也可以用于此目的.参见"
http://msdn.microsoft.com /en-us/library/system.windows.forms.integration.elementhost(v=vs.110).aspx
Your WF application might not need controls - it might simply need some WPF functionality. For instnace, you might want to do animated 3D graphics in a Windows Form. The ElementHost can also be used for that. See"
http://msdn.microsoft.com/en-us/library/system.windows.forms.integration.elementhost(v=vs.110).aspx
http://msdn.microsoft.com/en-us/library/ms788740(v = vs.110).aspx
这篇关于如何使用WF和WPF进行项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!