/// <summary> /// Invoked when the hardware back button is pressed. For Windows Phone only. /// </summary> /// <param name="sender">Instance that triggered the event.</param> /// <param name="e">Event data describing the conditions that led to the event.</param> 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(); } } }
public void GoBackEvent() { OnGoBack?.Invoke(); }
private void HandleDismiss() => OnGoBack?.Invoke();
partial void OnBackPressed(NSButton sender) { OnGoBack?.Invoke(this); }
private void pictb_Return_Click(object sender, EventArgs e) { OnGoBack?.Invoke(); }