/// <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();
                }
            }
        }
Esempio n. 2
0
 public void GoBackEvent()
 {
     OnGoBack?.Invoke();
 }
Esempio n. 3
0
 private void HandleDismiss() => OnGoBack?.Invoke();
 partial void OnBackPressed(NSButton sender)
 {
     OnGoBack?.Invoke(this);
 }
Esempio n. 5
0
 private void pictb_Return_Click(object sender, EventArgs e)
 {
     OnGoBack?.Invoke();
 }