Windows10 UWP Back Button的处理
2015-12-10 14:34
204 查看
1,Making the Back button appear requires just one line of code:
2,Responding to clicks of the Back button is a simple matter of wiring up a handler for SystemNavigationManager.BackRequested events:
3,手机端back的事件处理:
附: http://www.wintellect.com/devcenter/jprosise/handling-the-back-button-in-windows-10-uwp-apps
SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible;
2,Responding to clicks of the Back button is a simple matter of wiring up a handler for SystemNavigationManager.BackRequested events:
SystemNavigationManager.GetForCurrentView().BackRequested += (s, e) => { // TODO: Go back to the previous page };
3,手机端back的事件处理:
if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons")) { BackButton.Visibility = Visibility.Collapsed; Windows.Phone.UI.Input.HardwareButtons.BackPressed += OnHardwareBackButtonPressed; }
附: http://www.wintellect.com/devcenter/jprosise/handling-the-back-button-in-windows-10-uwp-apps
相关文章推荐
- SqlSever锁及存储过程优化
- 浏览器-02 Chromium的多线程
- meizu手机的虚拟键盘被popwindow覆盖的解决办法
- eclipse设置项目默认编码
- 源码推荐(12.10B):清除缓存,自定义Cell,多边形按钮
- C#获取Access数据库中的所有表名和列名
- (java) Path Sum
- 排序算法(3):冒泡排序
- java中线程创建的第二种方法
- android布局详解
- Linux 编程学习笔记----ANSI C 文件I/O管理
- 虚函数的实现机制
- Linux 日常管理
- myeclipse中xml自动补全
- mysql创建时间距离函数
- unity ios从打包到审核到发布全过程
- [骨科手术导航]2D/3D医学图像配准研究_罗博博_南方科技大学
- SequoiaDB 系列之六 :源码分析之coord节点
- Could not parse mapping document from input stream
- visual studio各个版本的差异