[英]Can ASP.NET control be used in WinForms?
This is probably a stupid question, but I have to ask. 这可能是一个愚蠢的问题,但我不得不问。
I found this excellent (and mainly free) control suite (Ext.NET) and I wonder if it's possible to use it in WinForms. 我发现了这个出色的(主要是免费的)控制套件(Ext.NET),我想知道是否可以在WinForms中使用它。
If it can, is it something normally doable or would it be a nightmare? 如果可以的话,这通常是可行的,还是一场噩梦?
No, it's not possible. 不,不可能。 The life cycle and environment of ASP.NET controls is very different from normal desktop controls and there's no way to interchange them. ASP.NET控件的生命周期和环境与普通的桌面控件有很大不同,并且无法互换它们。
没有任何直接解决方案是不可能的,Asp.net控件将使用System.Web.UI control
而Window将使用System.Windows.Forms Controls
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.