Reputation: 2534
How can I load XAML which is from the DataBase into the grid control in C#, How can I load that xaml into Grid Control ?
Upvotes: 0
Views: 1534
Reputation: 21863
you can use XamlReader.Load method to load xaml dynamically. You cannot use any code behind if you are loading dynamic xaml.
Just create a stream and pass that stream to the load method of the xamlreader.
Upvotes: 0