Grand Finale: Silverlight

Remember, Silverlight is the cross-platform version of WPF. Therefore, we can dive right into the markup (also XAML) for a Silverlight version of our WPF application (which we created by taking the WPF version’s XAML, pasting it in, and modifying it). There are a few important differences in this version, however. First, there is no provision for doing local data access (meaning no ADO.NET, no EF, and no L2S) in Silverlight, so we have to create local class definitions for ProductCategory and ProductSubcategory as well as an XML file with the actual data. That means we’ll need to use LINQ to XML to populate our object model, and then we’ll bind to it. We’ll also have to handle navigation differently since there’s no ...

Get Programming Microsoft® SQL Server™ 2008 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.