zoukankan
html css js c++ java
Windows Phone 7 返回键
//"返回键"只能用于返回上一页面。只是在有键盘、context菜单或弹出窗口时,这个返回操作是关闭键盘、取消context菜单或者弹出窗口。 // 如果页面中有弹出窗口,按"返回键"应取消弹出窗口,而不是退回到上一页面,Page类提供了可重载的OnBackKeyProcess方法,可供处理此逻辑: protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e) { if (popup.IsOpen) { popup.IsOpen = false; e.Cancel = true; } base.OnBackKeyPress(e); } // 有些情况下需要提醒用户是否要退出当前页面(返回上一页面),例如提醒用户保存当前页。此时可重载OnBackKeyProcess方法如下: protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e) { if (_isNewList) { if (!popupSavePromotion.IsOpen)//promotion not opened yet, show it { e.Cancel = true; popupSavePromotion.IsOpen = true; } else if (popupSavePromotion.IsOpen) //promotion already showed, if back key hit again, then close promotion and allow back key process continue { popupSavePromotion.IsOpen = false; } } base.OnBackKeyPress(e); }
查看全文
相关阅读:
lambda表达式查询经验:IN 和groupby的使用
Sql server 查询指定时间区间工作日数、休息日数等日期操作
ASP.NET MVC用存储过程批量添加修改数据
.NET十五周年生日快乐 (3月7日发布Visual Studio 2017正式版?)
浅谈 MVC中的ViewData、ViewBag和TempData
ASP.NET给前端动态添加修改 CSS样式JS 标题 关键字
元宵节大家来猜灯谜,祝元宵节快乐!
Visual Studio 2017 RC 初探安装
MySql存储过程的使用
准备熟悉Kaggle -菜鸟进阶
原文地址:https://www.cnblogs.com/javawebsoa/p/2458162.html
最新文章
初学GIT 遇到了个问题
PHP foreach 循环使用"&$val" 地址符“&”
第一次使用composer安装thinkphp5.0
curl 跨域请求回来的json数据带有BOM 字符ufeff,掉诡异的BOM ufeff
·基于thinkphp5.0和百度编辑器UMeditor 跨域上传图片实现
初步学习thinkphp5.0
一些程序的小算法
关于字节的相关资料
关于公网ip的一些信息(摘抄)
记一次有趣的JsonFormat不生效问题
热门文章
Charles的app抓包配置和抓包节点为unknown、乱码、手机无法上网等问题的处理
java通过正则进行语法分析实现表达式的逻辑判断和复杂计算实现
使用CyclicBarrier+线程池,按总页数分批次开多线程执行逻辑
dubbo中拦截生产者或消费者服务方法调用
后台管理UI+功能
js静态数据分页展示
Element ui 中使用table组件实现分页记忆选中
sql按月统计数量和按月累加统计数量
关于Dubbo异常之Data length too large
2020年.NET Conf大会 正式发布.NET 5
Copyright © 2011-2022 走看看