简体   繁体   中英

Can I run my .NET app offilne using the Silverlight UI?

I'm working on an interface for an app that I run locally (this needs to be able to run offline), and I want to use Silverlight's UI. I use certain references (specifically, Microsoft.Win32) in my .NET app which are not supported by the Silverlight framework, however. I want to not only use these assemblies, but somehow put a Silverlight-compatable presentation layer on top of it.

It seems like an unreasonable request, but I've been reading recently about Silverlight 4 and access portability and it seems like something like this should be possible. Am I wrong, here? If not, how would I go about implementing this?

Thank you in advance.

即使您从浏览器中运行了Silverlight 4应用程序或将其安装为完全信任应用程序,您仍然不能使用Silverlight不支持的类和程序集,因为它是完全不同的运行时环境。

Although technically possible to do your own Silverlight hosting through COM/ActiveX APIs, or hosting a web browser controls, it's pretty involved as you would be recreating a lot of the application framework experience.

You'll find more information at http://msdn.microsoft.com/en-us/library/cc296246(VS.95).aspx

I would recommend not attempting this and trying to use WPF instead, since it will be quite similar for presentation and graphics.

Yes, with silverlight 4 this is possible and quite straight forward. See http://justinangel.net/CuttingEdgeSilverlight4ComFeatures#BlogPost=CuttingEdgeSilverlight4ComFeatures

an excellent blog. See feature #14, this addresses your question

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM