Silverlight article posted at CodeProject

At last, I was able to complete and post my article: “My First Data Application in Silverlight” at CodeProject here: http://www.codeproject.com/KB/silverlight/MySilverlightDataApp.aspx
This one is a detailed article intended for beginners starting Silverlight. It discusses how data from a database can be retrieved and displayed in a silverlight application. It discusses how LINQ objects are returned using a WCF service and consumed in a silverlight application. On the layout side, it looks at the ListBox and DataGrid and provides an introduction to the data templates too. I think that most of the silverlight programmers have past experience of ASP.NET so I also discussed the similarities between ASP.NET and Silverlight. I hope people will find this article beneficial.

Advertisements

Silverlight-enabled WCF Service template

Before Beta 2 of silverlight 2, we needed some tweaks with the standard WCF service template to use it in our silverlight application. But luckily, the new Silverlight-enabled WCF Service template does the job lot easier for us. Now we just need to define our methods(marked with OperationContract atribute) in the service.svc.cs file and we are ready to consume it. No need to change the binding configuration to basicHttpBinding, no need to add ASP.NET compatibility support in special cases, no need to define method signatures in a separate contract file. Just use the new template and use the service in your silverlight application without any worries.

I won a Silverlight competition

I am very glad to announce that yesterday, 4th of August, I stood first in a silverlight competition held at Sir Syed University of Engineering and Technology. In the 8 hour competition, the participants were asked to make a custom control “Drag and Drop Shopping Cart” in Silverlight 2 Beta 2. Here were the prizes I got:

  • MSDN Premium Subscription for 1 Year (Total Market Value: $10, 939)
  • 10,000 Rupees cash

It was a very wonderful experience. You can download my code here. Be sure to rename the file as a zip for extraction.