Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / July 2007

Tip: Looking for answers? Try searching our database.

Winform controls vs. WPF controls.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill Gower - 23 Jul 2007 00:42 GMT
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/>


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.