[英]Count how many times user click back button (Windows Phone)
在我的Windows Phone應用程序中,我需要計算用戶從當前頁面單擊后退按鈕的次數。 可能嗎?
BackButtonPress有一個事件
protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
你有這樣的嘗試嗎?
int counter =0;
protected override void OnBackKeyPress
(System.ComponentModel.CancelEventArgs e)
{
base.OnBackKeyPress(e);
counter++;
textbox1.text = counter.tostring();
navigation process;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.