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
Post a Comment