开发者

Can I create a standalone (not ran in browser, having full trust) application with Moonlight?

I look forward to develop a WPF MVVC application which is to be ran both on Windows with .Net Framework an开发者_如何学JAVAd Mac/Linux with Mono.

As far as I understand the only part of of WPF implemented in Mono is Silverlight as Moonlight.

As far as I've read it is possible to develop a standalone application with Silverlight 3, but is it possible with Moonlight 2?


Moonlight supports out-of-browser but with restrictions: this is currently a manual process, not yet automated, and without a GUI (c) Miguel de Icaza. But I think using Moonlight as standalone GUI application is not very good idea. Because first of all it's is client side technology for web sites with many strict restrictions. So it will be impossible to do something serious (like accessing files) using standalone Moonlight. Look at GTK#. It might be more useful for you.


What you describe sounds possible. Moonlight 2 is reported to have out-of-browser capability.

There is much in WPF that is not available in either Silverlight or Moonlight. Your WPF implementation will need to avoid those UI elements that are not available in Silverlight/Moonlight.

Microsoft has done some work in the area of creating applications that can be multi-targeted at WPF and Silverlight. Their Prism library supports this. The issues that you face should be similar.

If your application is capable of running in the Silverlight out-of-browser sandbox it might be easier to target Silverlight on Windows and Moonlight on Linux/OSX. If not, you will need to make sure that access to the needed resources are available from Moonlight on the Linux/OSX platforms.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜