How to use WPF user control in ASP.net
I开发者_开发问答 have developed a WPF user control and I want to use it in ASP.net.
You can't. ASP.NET and WPF are completely different technologies. Best you could do is provide an XBAP application from your ASP.NET application, which is downloaded and run client side as a WPF application. Even if you convert it to Silverlight, it's still running client-side, with the advantage that Silverlight is a lighter runtime and is available on some non-Windows platforms.
You cannot use it directly.
You can either create an XBAP or you convert the control to Silverlight.
You probably can if you use it in Silverlight.
simply make a little "Silverlight" application and explicitly place on your ASP page. probably you can't do in placing wpf in ASP because the compiler is not teach to read Xbap with knowledge base (extension) of ASP XD
精彩评论