Can I dynamically create an XAML and pop it into my app? How would it be done?
+4
A:
Yep, it's pretty simple:
XmlReader tXml = XmlReader.Create(myXamlString);
UIElement MyElement = (UIElement)XamlReader.Load(tXml);
Then you can do what you like with it.
Steven Robbins
2009-01-08 20:32:59