摘要: 在Windows Phone 7程序的开发中,并没有针对程序退出的方法,只能使用手机上的后退按钮。那如果希望在页面点击后退按钮退出时,弹出个对话框给用户确认,可以这样实现:1 public MainPage()2 {3 InitializeComponent();4 5 this.BackKeyPress += new EventHandler<System.ComponentModel.CancelEventArgs>(MainPage_BackKeyPress);6 }void MainPage... 阅读全文
posted @ 2012-05-03 09:52 songtzu 阅读(455) 评论(1) 推荐(0)