Windows Phone Back KeyPress + MessageBox crashes the app without Selection

前端 未结 3 794
攒了一身酷
攒了一身酷 2021-01-15 06:19

I have a strange issue overriding BackkeyPress Function in code behind, inside the function i have a simple message box to Go back or cancel navigation ( stay in current pag

3条回答
  •  不知归路
    2021-01-15 06:42

    When using Terminate() - be aware that a number of app.xaml.cs rootFrame navigating events associated with normal exit won't trigger, neither the ApplicationClosing or your page's OnNavigatedFrom. So check if anything going on is important. You might tack it on before terminating...

提交回复
热议问题