询问者
NavigationService可以用在WPF Window里吗?

问题
全部回复
-
Hi ly_he,>>看了有关资料,NavigationService是WPF Page框架的页面导航组件,有什么办法可以将其用在WPF Window框架里,作为窗体的导航组件呢?
据我所知,并不可以。我建议你使用Navigation Window。 或者你可以在Window窗体中使用Frame来导航。
Navigation Window : 它派生自Window类,因此它继承Windows的所有属性,如方法,属性和事件。 导航窗口提供向后和向前的按钮,用于导航到我们之前访问过或尚未访问的页面。
下面链接供你参考
NavigationWindow 类:
https://msdn.microsoft.com/zh-cn/library/system.windows.navigation.navigationwindow(v=vs.110).aspxWPF Navigation:
http://www.cnblogs.com/yang-fei/p/4865488.htmlWPF简单导航框架(Window与Page互相调用)
http://blog.csdn.net/lordwish/article/details/52667150注意:此回复包含对第三方万维网站点的引用。 微软正在为您提供方便的信息。 Microsoft不控制这些网站,并没有测试这些网站上发现的任何软件或信息; 因此,Microsoft不能对在那里发现的任何软件或信息的质量,安全性或适用性做任何陈述。 使用互联网上发现的任何软件都存在固有的危险,微软警告您确保在从因特网检索任何软件之前,您完全了解风险。
Best Regards,
Yohann Lu
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已建议为答案 Bob DingModerator 2017年6月2日 1:09
-
Hi ly_he,>>在一个WPF的MDI环境下,要导航用户浏览过的各个子窗体(由于特殊要求,这些子窗体不能是页面)。
据我所知,在这样的MDI环境下。并没有这样的导航。
你可以自己去定义: 比如之前浏览过的子窗体放在一个队列中。你可以控制显示顺序来导航这些页面。
Best Regards,
Yohann Lu
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.