Reputation: 2205
I want to have panorama control (or pivot ) that each PanoramaItem will be some MyPage.xaml. How can I do that ?
Upvotes: 1
Views: 413
Reputation: 10785
Upvotes: 2
Reputation: 880
You'll want to look at System.Windows.Markup.XamlReader
We've used it to set up a listbox like so:
ListBox lb = new ListBox();
lb.ItemTemplate = (DataTemplate)XamlReader.Load("XAML as a string here");
Not exactly what you want, but should be enough to get you going.
Upvotes: 1