2013-06-13 58 views

回答

1

你可以试试this。这显示了如何在Win Forms中实现wpf项目。

0

看看this thread。它解释了两个控件(WPF中的Datagrid和Winforms中的DatagridView)。它的行为或多或少相同,但在后台有不同的框架。

1

在的WinForms使用ElementHost的和里面添加WPF控件(这里最好的做法是创建一个WPF用户控件并添加控制到用户控制)

而在WPF中,如果你想使用的WinForms用户控制,使用WindowsFormsHost

http://msdn.microsoft.com/en-us/library/aa970688.aspx

http://msdn.microsoft.com/en-us/library/ms751565.aspx

http://msdn.microsoft.com/en-us/library/ms754008.aspx

http://msdn.microsoft.com/en-us/library/ms751761.aspx

这里是您的视频示例。

http://channel9.msdn.com/blogs/danielmoth/use-wpf-from-windows-forms-projects-in-visual-studio-2008