Reputation: 4574
When handling Windows.Phone.UI.Input.HardwareButtons.BackPressed
event, if Handled
is not set to true, the app will be hidden and the phone will return to home screen.
Is there a way to achieve the same without having user press the back key?
Btw. I don't want to close/exit/terminate the app (which is not recommended by Microsoft), I just want to do whatever default BackPressed handling does.
Upvotes: 0
Views: 169
Reputation: 2020
The only way I know to bring the homescreen without exiting the app is to pin a tile on the homescreen. It's probably not a practical solution.
Either way, what you're trying to do is contradictory with Windows Phone design concepts. The user must stay in control at all time. If the user wants to exit, he'll press the back button. If he wants to keep your application alive, he'll press the home button. If the user isn't able to exit your application even though he wants to, that will create frustration.
Upvotes: 1