O'Reilly logo

Microsoft® Silverlight® Edition: Programming Windows® Phone 7 by Charles Petzold

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How This Chapter Was Created

The little snippets of XAML and the pictures that accompany them began life with a concept that originated in the early days of the Windows Presentation Foundation. Although XAML was mostly designed to be compiled along with the rest of your source code, it was also reasonable to assume that programmers might want to convert XAML into objects (and objects into XAML) at runtime. For this purpose, the System.Windows.Markup namespace has a static method named XamlReader.Load for converting XAML into objects, and XamlWriter.Save for going the other way.

Only the first of those two static methods made it into Silverlight and Silverlight for Windows Phone. But that’s the really useful one. Give XamlReader.Load a string containing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required