[Mono-dev] Silverlight/Moonlight questions

"Andrés G. Aragoneses [ knocte ] "Andrés G. Aragoneses [ knocte ]
Fri Oct 19 02:55:43 EDT 2007


Thanks again Rolf, and Miguel. Now my ideas are much clearer.

Just some more: :)

Rolf Bjarne Kvinge escribió:
>>> Hi,
>>>
>>>> - As you guys have managed to make widgets for the desktop using
>>>> Moonlight, could this be done also with Silverlight?
>>> I think so yes.
>>> There are Vista gadgets done with Silverlight somewhere.
>>>
>>>> If yes, how one
>>>> could do that from a normal .NET application that could call a
>>>> Silverlight widget?
>>> I have no idea how the Vista gadgets are made, but one idea is to use
>>> the System.Windows.Forms.WebBrowser to embed a browser inside a
>> desktop app.
>>
>> Hugh, but why launching whole browser core just to show a Silverlight
>> widget? 
> 
> Maybe because there's no other way?

Well, the other way is calling it as a native library as you just said 
LunarEclipse is doing, right?


> [...]
> Lunareclipse uses pinvokes to call into moonlight, and that part isn't
> portable.

A pity then. If Moonlight had the same native API as Silverlight, I 
guess this would be portable (I mean, in Windows LunarEclipse could use 
Silverlight instead of Moonlight), right?

>>>> Or from a .NET application?
>>>> I ask this because, as I understand, Silverlight CLR runs in a
>> Sandbox and thus it should not allow to write/read from disk, so then how
>> can anyone save the contents made by lunareclipse in the home directory
>> or whenever on the local computer?
>>> It is a .NET application already.
>> Then, how this .NET application launches a Silverlight widget?
>>
> 
> Lunareclipse uses moonlight (which is just a native library) to draw the
> xaml in a window. That's all there is to it actually.

Is MS Silverlight also a native library like Moonlight? Doesn't it have 
a managed API to be consumed by managed programs in order to use it 
outside of a browser?

Regards,

	Andrés	[ knocte ]

-- 





More information about the Mono-devel-list mailing list