虚位以待(AD)
虚位以待(AD)
首页 > 软件编程 > WindowsPhone/WindowsMobile > WP7重新定义返回键的方法

WP7重新定义返回键的方法
类别:WindowsPhone/WindowsMobile   作者:码皇   来源:互联网   点击:

protected override void OnBackKeyPress(System ComponentModel CancelEventArgs e){ 你自己的代码。认真负责些。 e Cancel = true; 取消默认行为。}摘自 xiechengfa的专栏

protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)

{

    //你自己的代码。认真负责些。

    e.Cancel = true; //取消默认行为。

}

 

 

摘自 xiechengfa的专栏

相关热词搜索: 重新 定义 返回