如何在WPF中进行页面重定向 [英] how to page redirect in wpf
本文介绍了如何在WPF中进行页面重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想点击按钮浏览页面
我将要登录页面,并在对用户进行身份验证之后,应将其重定向到下一页.
i want to navigate page on click button
i am going to login page and after authenticate user it should be redirect ot next page.
推荐答案
WPF提供了一种便捷的服务来管理各页面之间的导航,这足够巧妙了,NavigationService
.此服务提供了一种Navigate
方法,因此您的代码最终显示为:
WPF provides a handy service to manage navigation between pages called, cunningly enough, theNavigationService
. This service provides aNavigate
method, so your code ends up as:
NavigationService.Navigate(...);
这篇关于如何在WPF中进行页面重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文