Peter McGrattan’s Weblog

Silverlight, WCF, ASP.NET, AJAX, Graphics, RIA

Silverlight 2 Samples Updated

Posted by petermcg on October 21, 2008

The samples and links to demos on this blog have been updated to be compatible with the release of Silverlight 2.  These projects are typically the result of my curiosity or a desire to unearth benefit from a newly available feature in Silverlight 2.  If they are useful for others so much the better, if not there are certainly lots of other Silverlight 2 samples available elsewhere.

It has always been my intention to make these demos available without any restriction with the release of Silverlight 2, feel free to make use of them however it may benefit you:

Silverlight 2 Pie/Doughnut Chart Demo

Silverlight 2 Polling Duplex Demo – Part 1 : Architecture

Silverlight 2 Polling Duplex Demo – Part 2 : The Server

Silverlight 2 Polling Duplex Demo – Part 3 : The Client

Silverlight 2 Initialization Parameters Demo

Silverlight 2 Stock List Demo – Part 1 : XML file to DataGrid via LINQ to XML

Silverlight 2 Stock List Demo – Part 2 : XML file to DataGrid via WCF

Silverlight 2 Stock List Demo – Part 3 : Making the Grid Tick with Server Deltas via Sockets

The upgrade process was largely painless for me, the main change that sticks in my mind is accounting for the change in case of the GridLinesVisibility property on the DataGrid.  The pie chart live-demos have been updated but are hosted on Silverlight Streaming which does not yet fully support the released version of Silverlight 2, I expect this to change in the near future.

Changes of interest with regard to the Polling Duplex sample include that the server System.ServiceModel.PollingDuplex.dll assembly installed as part of the Silverlight 2 SDK is no longer contained in a folder titled ‘Evaluation’ but instead in the same folder as System.Web.Silverlight.dll.  This corresponds with the summary note here that this technology is no longer in evaluation and can now be used and deployed as part of Silverlight 2 production applications.  Finally, the previously mentioned DuplexReceiver functionality is now manifest as described here and demonstrated here as part of the Silverlight 2 RTW Web Services samples.


4 Responses to “Silverlight 2 Samples Updated”

  1. Rem said

    Nice blog…

  2. Alex Mikunov said

    There were changes in SL 3 causing all of the above samples to throw:

    The message version of the outgoing message (Soap11 ( AddressingNone ( does not match that of the encoder (Soap12 ( Addressing10 ( Make sure the binding is configured with the same version as the message.

  3. Alex Mikunov said

    Message message = Message.CreateMessage(MessageVersion.Soap11, “Silverlight/IStockService/Register”);
    Message message = Message.CreateMessage(MessageVersion.Soap12WSAddressing10, “Silverlight/IStockService/Register”);
    seems to make things better

  4. Nice site with great information shared.

Sorry, the comment form is closed at this time.

%d bloggers like this: