显示并导航用户到不同的 PanoramaItem
我正在开发一个全景应用程序。在其中一个全景项目中,我有一个类别列表。在选择其中一个列表项时,我已在新的全景项目中显示该类别下的所有提要。所以我决定使用全景项目(例如项目 4),最初设置为折叠。然后,当用户选择一个类别时,使该项目 4 可见为 true 并将用户导航到该项目 4. 并将该项目的标题更改为他们选择的类别。
这是正确的方法吗?
如果是这样,我如何以编程方式将用户导航到另一个项目?
我面临另一个问题,即使我更改标题,除非加载新页面,否则更改不会生效? (我还读到,MSDN 在其指南中指出,不建议更改全景项目的标题)?
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)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我个人的观点是,
Panorama
(和Pivot
)控件不应用于根据另一个项目中的选择来显示一个项目中的动态项目。观看第 9 频道视频< /a> Chad Roberts 和 Amy Alberts 讨论这两个关键控件。我的建议是导航到类别选择的另一个页面,并加载目标页面中该类别下的提要。如果您在这方面需要任何帮助,Shawn Wildermuth 有一篇关于页面导航的博客文章 。
My personal opinion is that the
Panorama
(andPivot
) 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.