Saturday, May 16, 2009

My latest assignment - Silverlight 2.0

I was working on this new module I have been assigned in office when I came across Silverlight. Actually, I had to convert a WPF application into silverlight. The straight forward reason being - if it is on the web it is accessible from every where.

The conversion was not a straight forward one as Silverlight differs from WPF in a lot of ways. It supports a lot of things differently then WPF - backround images, brushes, control templates etc.

Silverlight can be made to run on any browser that has the Silverlight plugin installed - its 4.8 MB. Actually, the plugin is nothing but a mini CLR. Just as in Java, to run applets u needed JRE, in .NET to run Silverlight u need Silverlight plugin.

Silverlight applications are actually downloaded on the client and are actually run from the client machine only. Therefore, every user is actually running his own copy of the application. This brings Silverlight application quite close to windows programming with the difference that it runs in a browser.

There is not a lot of help about Silverlight on the net but http://www.silverlight.net can help u figure out answers to common programming tasks.

One more thing worth mentioning here is the WebClient class that helps u to receive response from a Uri. I leave it up to u guys to explore it in more details. However, it was something I required to get my job done :).

I m really satisfied things have come out and look to present it to my boss on Monday morning.

Cheers

No comments: