Can I convert XML/XAML into WPF controls at runtime?

wpf, xaml

Solution

yes. what you want to look at is the XamlReader class, specefically, XamlReader.Load

Problem

Is there a way to take a chunk of XML/XAML and load it as WPF controls at runtime? Related: Can I use XamlReader.Load or InitializeFromXaml from a WPF Window, for the Window definition?

Original source

Related problems