Integrate WinForms project into WPF

I've been working on a project for some time, and it requires alphablended non rectangular forms... which in a little research I found can be easily done in WPF. So I decided to port my project from WinForms to WPF.

There are a few complications like a reference DLL based on WinForms I've been using doesn't work under WPF; it doesn't even show in the designer toolbox. I already tried loading it into the toolbox by right clicking and selecting Choose Items.., but it does not show there either.

I have never worked on WPF before, but it looks so promising for my requirements. So is there anything I could do to integrate my project into WPF?


There is a control named 'WindowsFormsHost' in WPF. You can find it in toolbox. Drag it on the form and then you can use windows controls and user controls on it.

Hope this information will help.

链接地址: http://www.djcxy.com/p/50506.html

上一篇: 最有效的方法来连接字符串?

下一篇: 将WinForms项目集成到WPF中