How to exit or quit my Windows Phone 8 app programmatically?

前端 未结 3 1820
陌清茗
陌清茗 2020-12-20 15:12

I am developing a Windows Phone 8 application.

  1. How can I exit or quit programmatically (through code) from my Windows Phone 8 app?

  2. What are

3条回答
  •  时光说笑
    2020-12-20 15:39

    while (((PhoneApplicationFrame)App.Current.RootVisual).CanGoBack)
    {
        ((PhoneApplicationFrame)App.Current.RootVisual).RemoveBackEntry();
    }
    

提交回复
热议问题