first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

WPF: “Using XamlReader.Load”; MSDN

The Load method is the managed API equivalent of the CreateFromXaml method in the JavaScript API. As with CreateFromXaml, the input to Load is a XAML fragment provided as a string, and the output is an object that can be added to the Silverlight object tree.

XamlReader in general is similar in design to "XmlReader" classes that are present in Silverlight (such as System.Xml..::.XmlReader or System.Xml..::.XmlDictionaryReader) as well as in other Microsoft development technologies. The XamlReader is a largely stateless static class with methods that create objects; it provides object construction behavior that parallels the XAML processing that generates run-time object trees from XAML in Silverlight.

There are several general concepts about creating objects from XAML that are identical whether you are using the JavaScript CreateFromXaml or the managed Load method:

There are also several notable differences between using XamlReader and using the CreateFromXaml method:

[http://msdn.microsoft.com/en-us/library/cc189076%28VS.95%29.aspx]

mod date: 2009-09-20T04:54:37.000Z