Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 and 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?

like image 372
Ivan Avatar asked Jun 06 '10 05:06

Ivan


Video Answer


2 Answers

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.

like image 104
Igor V Savchenko Avatar answered Nov 09 '22 11:11

Igor V Savchenko


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.

like image 22
Jim Reineri Avatar answered Nov 09 '22 09:11

Jim Reineri