示例#1
0
 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);
     }
 }
示例#2
0
 public void RaiseBackRequested(HandledEventArgs args)
 {
     if (BackRequested == null)
     {
         args.Handled = this.Frame.BackStackDepth > 0;
         if (args.Handled)
             this.GoBack();
     }
     else
     {
         BackRequested?.Invoke(this, args);
     }
 }