Installing XAML at runtime?

Can I dynamically create XAML and embed it in my application? How to do it?

+3
source share
2 answers

Yes, it is quite simple:

XmlReader tXml = XmlReader.Create(myXamlString);
UIElement MyElement = (UIElement)XamlReader.Load(tXml);

Then you can do what you like.

+3
source
+1
source

All Articles