title author date CreateTime categories
How to use code to exit the application in UWP
lindexi
2019-08-31 16:55:58 +0800
2018-06-15 20:30:49 +0800
UWP

I will tell you how to exit the application in UWP by the code.

We can call some static method to help us to exit the application.

The first method is as this code:

            CoreApplication.Exit();

And the other one is

Application.Current.Exit();

If you are making the WPF application that you can use this code to exit the application.

Application.Current.Shutdown();

And

Environment.Exit(0);

If you find any problems, please contact me.

最新文章

  1. 对hashmap,hashset,hashtable的理解
  2. 高斯混合模型(GMM)
  3. JMeter学习-035-JMeter调试工具之二---Debug PostProcessor
  4. 7.Git的版本退回
  5. 用markdown学习写出总结
  6. netfx_NativeCompilation.msi 传说中的 .NET Native 预览版的文件列表
  7. Angularjs做的一个小页面
  8. DNS介绍
  9. 加密算法使用(四):AES的使用
  10. mac 下 sphinx + mysql + php 实现全文搜索(xampp)(3)sphinx 的配置项解析
  11. Oracle笔记-表的管理
  12. JavaScript开发者应懂的33个概念
  13. Python3 tkinter基础 Scale orient 横竖 resolution单步步长 length 长度 tickinterval 指示刻度
  14. thinkphp简洁、美观、靠谱的分页类
  15. oracle 中可以用 case when then else end来处理除数是0的情况
  16. Mysql连接错误:Mysql Host is blocked because of many connection errors
  17. 微信公众号 access_token 没有过期 却失效
  18. 6个监控linux资源的快速工具
  19. [转]winform CEF
  20. SecureCRT SSH连接一直提示密码错误

热门文章

  1. nginx之域名重定向
  2. Centos,tomcat
  3. Jquery的$.ajax、$.get、$.post发送、接收JSON数据及回调函数用法
  4. JS同行绑定事件
  5. STL sort源码剖析
  6. Java线程的优先级设置遵循什么原则?
  7. vue.js 分页
  8. Spring data jpa persistence .xml 配置文件
  9. v-bin:href 绑定链接
  10. SQL Ssever 安装.NET3.5 框架