一般我們在開發Windows Store App 或 Windows Phone App 時,會利用NavigationService來做切換頁的動作,或是將NavigationService的歷史的上一層刪除亦或者將NavigationService中的所有歷史頁面刪除,但是該如何刪除自己本身呢?!

本篇文章將引導您終止Windows Store App、Windows Phone App。

 

本篇文章教導您終止應用程式,但這是不建議的,

因為可能會違背Windows Store App 和 Windows Phone App 的使用者體驗原則,

但若能夠妥善的處理,或運用在特殊的地方,其實是有所幫助的 !

 

Windows Store App :

Application.Current.Exit();

 

Windows Phone App:

Application.Current.Terminate();

References :

http://stackoverflow.com/questions/18671964/exit-button-in-windows-8-mobile-application

http://stackoverflow.com/questions/12749990/programatically-close-win8-app

 

文章中的敘述如有觀念不正確錯誤的部分,歡迎告知指正 謝謝
http://www.sukitech.com/?p=943
轉載請註明出處,並且附上本篇文章網址 !  感謝。

14 Thoughts on “C# Windows Store App ,Windows Phone App 開發,終止應用程式(APP)。

  1. Very good article.Thanks Again. Great.

  2. I appreciate you sharing this article.Much thanks again. Awesome.

  3. I cannot thank you enough for the article.Really looking forward to read more. Really Cool.

  4. Im thankful for the blog article.Much thanks again. Fantastic.

  5. Thank you for your blog article.Really thank you! Want more.

  6. I appreciate you sharing this blog.Really looking forward to read more. Keep writing.

  7. Major thankies for the blog.Really thank you! Will read on…

  8. Major thanks for the post.Really thank you! Keep writing.

  9. Im obliged for the blog post. Want more.

  10. I value the article.Thanks Again. Really Cool.

  11. A round of applause for your article post. Keep writing.

  12. A round of applause for your article post.Really thank you!

  13. Very informative blog. Keep writing.

  14. Im grateful for the article post. Much obliged.

發表迴響

你的電子郵件位址並不會被公開。

Post Navigation