c# - DIsable HardwareButton on Windows Phone 8.1 -


i have basic app on windows phone 8.1, , in have regular buttons, navigate or exit application. want disable hardwarebutton back/exit, if press it, application not exit. help?

btw, tried:

public void hardwarebuttons_backpressed(object sender, windows.phone.ui.input.backpressedeventargs e) {     e.handled = false;       }  

you have rewrite hardwarebuttons_backpressed method on app.xaml.cs file.

also if have handled event, have set e.handled = true tell system have handled event , dont push event below in queue.

for more , examples see msdn.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -