Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I seen the features of a wpf such as rich-content model, tool tips with pictures, text block, data templates, images in list boxes, text box validations, annotations, no problem with different screen- resolutions etc .

With these power of wpf, i want to use it in existing application (i can't complete convert the existing application in wpf because mostly it is h/w and devices related, and also used 3rd party components, dlls etc. ).

But i find out some winfoms in my applications, if i can convert these forms in wpf forms then it will make the application really beautifull and user friendly.

Basically, that is the reason why i want to use wpf and as i mentioned i can't complete application in wpf due to certains limitations.

Finally, i want some expert review and comments, so that i can procced my projects.
Can i keep the base as WPF and then try to add the existing 'incompatible winforms' (which are dependent on 3rd party components ) to wpf application.

Please, suggest that this mixup sounds intelligent or can lead to some performance issue.
Posted
Updated 27-May-11 5:32am
v2

1 solution

You can add custom WPF Controls using the ElementHost[^] found in your ToolBox under 'WPF Interoperability'. Check this[^] and this[^] to see how that is done.
Note that when you add an ElementHost to your Form Visual Studio automatically references some WPF assemblies to your project.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900