Beispiel #1
0
 protected override void UnRegisterHandleBackLogic()
 {
     SystemNavigationManager.GetForCurrentView().BackRequested -= NewMainPage_BackRequested;
     if (ApiInformationHelper.HasHardwareButton())
     {
         HardwareButtons.BackPressed -= HardwareButtons_BackPressed;
     }
 }
 protected virtual void UnRegisterHandleBackLogic()
 {
     try
     {
         SystemNavigationManager.GetForCurrentView().BackRequested -= BindablePage_BackRequested;
         if (ApiInformationHelper.HasHardwareButton())
         {
             HardwareButtons.BackPressed -= HardwareButtons_BackPressed;
         }
     }
     catch (Exception e)
     {
         Debug.WriteLine(e.Message);
     }
 }