Will Net 2.0 Winform controls work in WPF apps or does a control have to be
specifically designed for WPF?
Bill
Radek Cerny - 23 Jul 2007 04:10 GMT
There is the option using interop, but WPF is a whole new different world,
so the basic answer is no.
> Will Net 2.0 Winform controls work in WPF apps or does a control have to
> be specifically designed for WPF?
>
> Bill
Ravi Bhavnani - 23 Jul 2007 06:18 GMT
Yes, if you contain it within a WindowsFormsHost. See
http://msdn2.microsoft.com/en-us/library/system.windows.forms.integration.window
sformshost.aspx
/ravi
----------
> Will Net 2.0 Winform controls work in WPF apps or does a control have to be
> specifically designed for WPF?
>
> Bill
Lloyd Dupont - 23 Jul 2007 12:25 GMT
Good answer ;-)
> Yes, if you contain it within a WindowsFormsHost. See
> http://msdn2.microsoft.com/en-us/library/system.windows.forms.integration.window
sformshost.aspx
Herfried K. Wagner [MVP] - 23 Jul 2007 06:43 GMT
"Bill Gower" <billgower@charter.net> schrieb:
> Will Net 2.0 Winform controls work in WPF apps or does a control have to
> be specifically designed for WPF?
Windows Forms controls are different from WPF controls. Windows Forms
controls are bitmap-based, whereas WPF controls are drawn in a vector-based
way. Thus WPF provides some features like rotation, shearing, etc. of
controls which Windows Forms cotnrols do not support. Nevertheless, there
are ways to mix Windows Forms and WPF, but the result may be disappointing.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>