zoukankan
html css js c++ java
window phone开发之 禁用back键
在开发过程中,因为页面是无状态的,可能会导致页面的回退操作逆向业务需求而禁用回退
两步可以轻松搞定
第一 在XAML文件注册事件:
BackKeyPress="PhoneApplicationPage_BackKeyPress">
第二在后台实现方法:
private void PhoneApplicationPage_BackKeyPress(object sender, System.ComponentModel.CancelEventArgs e) { e.Cancel = true; }
或者直接实现重载
protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e) { e.Cancel = true; }
查看全文
相关阅读:
2017.8.07
2017.8.05
2017.8.04
2017.8.03
2017.8.02
2017.8.01
2017.7.31
2017.7.29
2017.7.28
简易日历
原文地址:https://www.cnblogs.com/javawebsoa/p/2458132.html
最新文章
oracle 的事务
oracle 的函数
oracle表复杂查询
oracle的表操作
oracle的数据类型
oracle 用户管理
sql plus常用命令
分页的总记录数简单总结
解决org.apache.jasper.JasperException: The following has evaluated to null or missing异常总结
小程序 cover-view自定义custom-tab-bar及cover-view的坑
热门文章
小程序·echarts在真机不显示且报错
小程序·使用echarts不跟随父元素滑动的问题
flex布局
正则表达式
form表单事件
移动版轮播图
轮播图的做法(更换背景图片)
轮播图的做法(更换背景颜色)
BOM操作
2017.8.08
Copyright © 2011-2022 走看看