WindowsFormsHost invalid theme in WPF Application (.Net 3.5)
-
Dear Friends. I've making a wpf application. in a part of my program, I need some "windows forms" controls. I use WindowsFormsHost for using that controls. it work correctly, but the theme of controls (in windowsformshost) is windows classic. but I using Windows Aero (Windows 7). Here is an Image of my Problem: <a href="http://ghiasi.net/wpf.jpg">http://ghiasi.net/wpf.jpg</a>[<a href="http://ghiasi.net/wpf.jpg" target="_blank" title="New Window">^</a>] How can i correct the theme of Windows Forms Controls in WPF Application?
Regards. Mehdi Ghiasi
-
Dear Friends. I've making a wpf application. in a part of my program, I need some "windows forms" controls. I use WindowsFormsHost for using that controls. it work correctly, but the theme of controls (in windowsformshost) is windows classic. but I using Windows Aero (Windows 7). Here is an Image of my Problem: <a href="http://ghiasi.net/wpf.jpg">http://ghiasi.net/wpf.jpg</a>[<a href="http://ghiasi.net/wpf.jpg" target="_blank" title="New Window">^</a>] How can i correct the theme of Windows Forms Controls in WPF Application?
Regards. Mehdi Ghiasi
The normal Windows Forms control do not support WPF themes, nor Aero Glass. You have to replace the controls with ones that do. You may want to look into a third party control library if you want to get up and running faster, or put the time in to develop your own.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...