问题描述
我正在开发Panorama应用程序.在全景图"项目之一中,我有一个类别列表.在选择列表项之一时,我已经在新的Panorama项目中显示了该类别下的所有供稿.因此,我决定使用Panorama项目,例如第4个项目,最初设置为折叠.然后,当用户选择一个类别时,使该项目4变为true并将用户导航到该项目4,然后将该项目的标题更改为他们选择的类别.
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?
我面临另一个问题,即使更改标题,除非加载新页面,更改仍不会生效? (我还读到MSDN在其指南中指出,不建议更改Panorama项目的标题)?
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)?
推荐答案
我个人的观点是,Panorama
(和Pivot
)控件不应用于根据另一个项目中的选择显示一个项目中的动态项目.物品.观看此频道9视频查德·罗伯茨(Chad Roberts)和艾米·阿尔伯特(Amy Alberts)讨论了这两个关键控制.
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.
我的建议是导航到有关类别选择的另一页,然后将提要加载到目标页面中的该类别下.如果您在这方面需要任何帮助,Shawn Wildermuth在页面导航上有一个博客文章.
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.
这篇关于显示用户并将其导航到其他PanoramaItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!