I navigate through different pages in my application. At some time I come to my home page and by pressing the back button I want to exit my application while I am at homepage but each time I press the back button it goes to the previous page. I succeed to cancel the navigation overriding the backkeypress property of the application.
protected override void OnBackKeyPress(CancelEventArgs e)
{
base.OnBackKeyPress(e);
e.cancel = true;
}
Is there any similar way to exit the application ?