Silverlight 应用程序中的框架导航

发布于 2024-09-01 19:15:34 字数 216 浏览 0 评论 0原文

我有一个用于菜单的 WebRibbon 控件。我在页面上有一个 TabControl 来保存所有内容。当您单击菜单时,我会创建一个 TabItem,将框架添加到选项卡项目,导航到该框架中的特定 xaml 页面,然后将该框架添加到选项卡项目。对于第一页来说效果很好。 xaml 页面的内容在框架中正确显示。当我导航到第二页和第三页时,问题就出现了。所有选项卡项上的所有框架都导航到最后选定的菜单项对应的 xaml 内容。

I have a WebRibbon control for a menu. I have a TabControl on the page that holds all content. As you click on a menu I create a TabItem, add a frame to the tab item, navigate to a specific xaml page in that frame and then add the frame to the tab item. It works fine for the first page. The content of the xaml page displays correctly in the frame. A problem arise as soon as I navigate to a second and third page. All the frames on all the tab items navigate to the last selected menu items corresponding xaml content.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

○愚か者の日 2024-09-08 19:15:34

frame1.JournalOwnership = JournalOwnership.OwnsJournal;

这解决了我的问题...

frame1.JournalOwnership = JournalOwnership.OwnsJournal;

This solved my problem...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文