tags:

views:

363

answers:

2

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
+1  A: 

A few articles on dynamic XAML generation:

Soviut