Part of my app switches PivotItems automatically when a user clicks on an item in a list. I want to allow the user to press the back button after this action to switch back to the original PivotItem. How could this be achieved? If my understanding is correct the normal BackStack can only be used with pages.
Share
You can override the
OnBackKeyPress()function and sete.Canceltotrueto cancel the back key press (and navigate to a different PivotItem or whatever).However: according to the certification requirements:
So I wouldn’t recommend doing something like this – not only is it likely to fail certification, it’s also likely to confuse people.