且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在不通过 PhoneApplicationPage 的情况下在 WINdows Phone 应用程序中访问 NavigationService?

更新时间:2022-11-04 12:38:22

您可以从应用的 PhoneApplicationFrame 获取它.由于每个 Windows Phone 应用程序都有一个框架,因此可以从应用程序的任何位置访问它.

You can get it from the app's PhoneApplicationFrame. It will be accessible from anywhere in the app since every Windows Phone app has a Frame.

((PhoneApplicationFrame)Application.Current.RootVisual).Navigate(...);