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