We have Win Forms application uses the 3rd party windows native controls. Can these controls used with WPF application?
+6
A:
Of course, that's what the WindowsFormsHost
WPF control is for!
See: http://msdn.microsoft.com/en-us/library/ms751761.aspx to do it in code.
Or: http://msdn.microsoft.com/en-us/library/ms742875.aspx to do it in XAML.
Andy Shellam
2010-03-19 14:03:00
By the way, that took all of 10 seconds to find out with a quick Google ;-)
Andy Shellam
2010-03-19 14:04:37
Thanks for the edit, Johannes :)
Andy Shellam
2010-03-19 14:06:07
I like to know, are there any hidden complication using windows controls with WPF.
Gopalakrishnan Subramani
2010-03-19 14:06:32
I just thought it'd be nice to mention the name of the control required. It can be found in the toolbox as well and the OP might just not have found it :-)
Joey
2010-03-19 14:07:14
Not that I'm aware of, aside from the possibility of poor performance and limitations on graphics rendering, but I wouldn't mind betting your library vendor has a WPF version :)
Andy Shellam
2010-03-19 14:08:14
@Andy, I yet to explore the WPF world. After MFC and WinForms, WPF is another major break.. Thanks for answer
Gopalakrishnan Subramani
2010-03-19 14:08:35
I was in the same boat four months ago, now I love WPF, but I still find it has teething issues. WPF apps also don't seem to have the performance of WinForms - I find they lag sometimes like Java apps on Windows.
Andy Shellam
2010-03-19 14:10:10
A:
Yes it does. However, if you can use a WPF control instead do it.
David Brunelle
2010-03-19 14:05:09