/// <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));
 }
示例#2
0
 public NavigationService(Frame frame)
 {
     _frame             = new NavigationFacade(frame);
     _frame.Navigating += (s, e) => NavigateFrom(false);
     _frame.Navigated  += (s, e) => NavigateTo(e.NavigationMode, e.Parameter);
 }
 public NavigationService(Frame frame)
 {
     _frame = new NavigationFacade(frame);
     _frame.Navigating += (s, e) => NavigateFrom(false);
     _frame.Navigated += (s, e) => NavigateTo(e.NavigationMode, e.Parameter);
 }
示例#4
0
 /// <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));
 }