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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access