Tuesday, 25 June 2013

Exit application on back key press in windows phone :

Hi in this post i'll explain you about how to get out from application in windows phone in "OnBackKeyPress"

here the follow code make to exit to application.

this.NavigationService.RemoveBackEntry();
        base.OnBackKeyPress(e);
        e.Cancel = false;

the "NavigationService.RemoveBackEntry();" helps you to remove the Back-entry only one step back it removes, then makes you to exit out the application in OnBackKeyPressEvent for windows phone.

No comments:

Post a Comment