Catrobat.IDE.WindowsShared.Common.NavigationHelper.HardwareButtons_BackPressed C# (CSharp) Method

HardwareButtons_BackPressed() private method

Invoked when the hardware back button is pressed. For Windows Phone only.
private HardwareButtons_BackPressed ( object sender, Windows e ) : void
sender object Instance that triggered the event.
e Windows Event data describing the conditions that led to the event.
return void
        private void HardwareButtons_BackPressed(object sender, Windows.Phone.UI.Input.BackPressedEventArgs e)
        {
            if (this.GoBackCommand.CanExecute(null))
            {
                e.Handled = true;
                //this.GoBackCommand.Execute(null);

                if (OnGoBack != null)
                    OnGoBack.Invoke();
                else
                    if (CanGoBack())
                        GoBack();
            }
        }
#else