/// <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> public void HardwareButtonsBackPressed(object sender, BackPressedEventArgs e) { if (BackKeyPressed != null) { BackKeyPressed.Invoke(e); } }
/// <summary> /// Raises the <see cref="BackKeyPressed"/> event with the provided event data. /// </summary> /// <param name="eventArgs">The event data.</param> protected virtual void RaiseBackKeyPressed(NavigationServiceBackKeyPressedEventArgs eventArgs) { BackKeyPressed?.Invoke(this, eventArgs); }