开发者

How to quit a wp7 app? [duplicate]

This开发者_运维问答 question already has answers here: Closed 11 years ago.

Possible Duplicate:

Windows Phone 7 close application

I have an app which needs quiting from the MainPage but just using NavigationService.GoBack() won't work when another screen has navigated to that main page as I don't want the ability to go back to that previous page.

Would I have to set a variable in App.xaml.cs called backToBeginning and all the onnavigatedto callbacks will GoBack() if that is set? or is that too messy?


WP7 does not support exiting of apps. Just let the user do it with the back button.


Currently, there is no way to achieve this. What you have described is really needed in the Music+Video hub, but due to inability to to it with the way navigation in WP7 is organized, even Microsoft had to sacrifice the functionality of a very important build-in application.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜