Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

wpf

xaml

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?

like image 435
Jonathan Allen Avatar asked Nov 27 '25 08:11

Jonathan Allen


1 Answers

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

like image 144
Muad'Dib Avatar answered Nov 30 '25 00:11

Muad'Dib



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!