问题
I am developing a Panorama application. In one of the Panorama item, I have a list of categories. On Selecting one of the list item, I have display all the feeds under that category in a new Panorama Item. So I decided to use a Panorama item say item 4, initially set to collapsed. And then when the user select a category, make that item 4 visible to true and navigate the user to that item 4. and change the title of that item to the category they selected.
Is this the right way to do it?
If So, how can I navigate the user to another item programmatic?
I am facing another issue where even if I change the title, the change is not taking effect unless a new page load? (I also read that MSDN has stated in its guidelines that it is not advisable to change the title of an Panorama item)?
回答1:
My personal opinion is that the Panorama
(and Pivot
) control should not be used to display dynamic items in one item based on a selection in another item. Take a look at this channel 9 video where Chad Roberts and Amy Alberts discuss these two key controls.
My suggestion would be to navigate to another page on category selection and to load the feeds under that category in the target page. Shawn Wildermuth has a blog post on page navigation if you need any help in that respect.
来源:https://stackoverflow.com/questions/4801432/show-and-navigate-the-user-to-a-different-panoramaitem