private void BootStrapper_BackRequested(object sender, HandledEventArgs e) { e.Handled = Handled; foreach (IAction item in Actions) { _dispatcher.Dispatch(() => item.Execute(sender, null)); } }
public void RaiseForwardRequested(HandledEventArgs args) { ForwardRequested?.Invoke(this, args); if (!args.Handled && this.Frame.ForwardStack.Count > 0) { GoForward(); } }
public void RaiseBackRequested(HandledEventArgs args) { BackRequested?.Invoke(this, args); if (BackButtonHandling == BootStrapper.BackButton.Attach && !args.Handled && (args.Handled = Frame.BackStackDepth > 0)) { GoBack(); } }
public void NavigationManager_BackRequested(object sender, HandledEventArgs e) { if (isInOnePaneMode) { if (PreviewItem != null) { ShowMasterView(); e.Handled = true; } } }
public void RaiseBackRequested(HandledEventArgs args) { if (BackRequested != null) { BackRequested?.Invoke(this, args); } if (!args.Handled && (args.Handled = this.Frame.BackStackDepth > 0)) { GoBack(); } }
public void RaiseForwardRequested(HandledEventArgs args) { if (ForwardRequested == null) { args.Handled = this.Frame.ForwardStack.Count > 0; if (args.Handled) this.GoForward(); } else { ForwardRequested?.Invoke(this, args); } }
public void RaiseBackRequested(HandledEventArgs args) { if (BackRequested == null) { args.Handled = this.Frame.BackStackDepth > 0; if (args.Handled) this.GoBack(); } else { BackRequested?.Invoke(this, args); } }
public void RaiseForwardRequested(HandledEventArgs args) { ForwardRequested?.Invoke(this, args); }
public void RaiseBackRequested(HandledEventArgs args) { BackRequested?.Invoke(this, args); }
private void OnForwardRequested() { var args = new HandledEventArgs(); ForwardRequested?.Invoke(this, args); if (!args.Handled) { NavigationService.GoForward(); args.Handled = true; } }
private void RaiseForwardRequested() { var args = new HandledEventArgs(); foreach (var frame in WindowWrapper.Current().NavigationServices.Select(x => x.Frame)) { frame.RaiseForwardRequested(args); if (args.Handled) return; } // default to first window NavigationService.GoForward(); }
internal void RaiseForwardRequested(HandledEventArgs args) => ForwardRequested?.Invoke(this, args);
internal void RaiseBackRequested(HandledEventArgs args) => BackRequested?.Invoke(this, args);
private void BootStrapper_BackRequested(object sender, HandledEventArgs e) { e.Handled = Handled; Interaction.ExecuteActions(sender, Actions, null); }
/// <summary> /// Default Hardware/Shell Back handler overrides standard Back behavior that navigates to previous app /// in the app stack to instead cause a backward page navigation. /// Views or Viewodels can override this behavior by handling the BackRequested event and setting the /// Handled property of the BackRequestedEventArgs to true. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void RaiseBackRequested() { var args = new HandledEventArgs(); BackRequested?.Invoke(this, args); if (!args.Handled) { NavigationService.GoBack(); args.Handled = true; } }
private void RaiseForwardRequested() { var args = new HandledEventArgs(); ForwardRequested?.Invoke(this, args); if (!args.Handled) { // default to first window NavigationService.GoForward(); args.Handled = true; } }