winfom UserControl和wpf userControl有什么区别? [英] what is the difference between winfom UserControl and wpf userControl?

查看:231
本文介绍了winfom UserControl和wpf userControl有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有任何差异。或者它们是相同的

is there is any diff. or they are same

推荐答案

考虑到用户控件是一个用户控件而不管框架如何,那么Ralf是正确的。你问的问题应该是:



Windows Forms和WPF有什么区别?



从Infragistics中读取以下信息......



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



它更详细地介绍了这个问题,但第一段很好地总结了它:



WinForms提供对本机Microsoft的访问通过在托管代码中包装现有Windows API来实现Windows界面元素。另一方面,WPF是基于.NET Framework的Microsoft Windows应用程序开发的新平台。该框架提供了一个清晰的,面向对象的,可扩展的类集,使您能够开发丰富的Windows应用程序。
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.


它们是来自不同名称空间的不同类,具有相同的名称。

WPF UserControl存在于System.Windows.Controls中。

System.Windows.Forms中的WinForms'UserControl。
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.


这篇关于winfom UserControl和wpf userControl有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆