c# - Hardware back button in WP8.1 universal app -
the question windows phone 8.1 universal app, not blank app template other templates have navigationhelper class in common folder. possible navigate page regardless of navigation history page using hardware button? example if navigation goes page1 page2 > page3 > page2 , page3 navigation hardware button page3 page2 > page3 > page2 , page1. possible manage programaticaly hardware button navigates page2 page1 regardless of navigation history? because, hardware button navigates through pages , in case navigate page3 page2 , page1. trying achieve here when user uses hardware button on page2 want user page1. used appbarbuttons page navigation following code:
frame.navigate(typeof(page2));
thanks in advance
in wp, must avoid circular navigation, shouldn't go page3 page2, try
frame.goback();
to go page2 after page3
or, can manage manually overriding backpressed event, check type of current page, want , set
this.handled = true
more info : http://grogansoft.com/blog/?p=577