Asim Sajjad
Asim Sajjad

Reputation: 2534

Loading XAML To Grid Control

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

Answers (2)

Kishore Kumar
Kishore Kumar

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

slugster
slugster

Reputation: 49984

Check out the XamlReader.Load() function.

Upvotes: 1

Related Questions