Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
is there is any diff. or they are same
Posted
Updated 30-Sep-16 13:32pm
Comments
Sergey Alexandrovich Kryukov 14-Jan-16 0:31am    
The question makes no sense at all.
—SA
Ralf Meier 14-Jan-16 1:38am    
I think, the question better should be :
"What is the difference between Windows Forms and WPF ?"

What is the Intension of this question ?
Philippe Mori 14-Jan-16 12:48pm    
Typically, you use a UserControl of the same technology as your application... If your mix both, then the UserControl would be the appropriate one for controls placed on it.

Taking into account that a user control is a user control regardless of the framework then Ralf is correct. The question you're asking should be:

"What is the difference between Windows Forms and WPF ?"

Read the following from Infragistics...

Windows Presentation Foundation vs WinForms - Evangelism - Infragistics.com Blog[^]

It covers the question in more detail but the first paragraph sums it up nicely:

WinForms provides access to the native Microsoft Windows interface elements by wrapping the existing Windows API in managed code. WPF on the other hand, is the new platform for Microsoft Windows application development, based on the .NET Framework. This framework provides a clear, object-oriented, extensible set of classes that enable you to develop rich Windows applications.
 
Share this answer
 
They are different classes with the same name from different namespaces.
WPF UserControl lives in the System.Windows.Controls.
WinForms' UserControl in the System.Windows.Forms.
 
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