/// <summary> /// Initialzies a new <see cref="NavigationService"/> instance for the specified frame. /// </summary> /// <param name="frame"> /// The <see cref="Frame"/> that the navigation service will wrap. /// </param> public NavigationService(Frame frame) { this.frame = new NavigationFacade(frame); this.frame.Navigating += OnNavigating; this.frame.Navigated += (s, e) => OnNavigated(this, new NavigationEventArgsEx(e)); }
public NavigationService(Frame frame) { _frame = new NavigationFacade(frame); _frame.Navigating += (s, e) => NavigateFrom(false); _frame.Navigated += (s, e) => NavigateTo(e.NavigationMode, e.Parameter); }