Situation:
I have a panorama control with 2 panorama items. First item contain the list of options and, if i choose one of them, panorama control should switch to second item. As you understand, the content of second item should be dynamically updated each time. Moreover the ItemTemplate should be different for each option.
My solution:
I decide to create panorama control each time i need to switch (because the only way to switch panorama item programmatically is to change DefaultItem property which requires reload the page or to hide this and show another control). This solution works, but now i need to assign different ItemTemplate for each panorama item. (Templates are in xaml. I need just to assign it).
Questions:
Is my solution correct?
And how can i assign ItemTemplate’s in code behind?
Situation: I have a panorama control with 2 panorama items. First item contain the
Share
how can i assign ItemTemplate’s in code behind?
The solution looks like this:
}
Hope this will be helpful for someone.