Example #1
0
 public void Navigate(object content)
 {
     if (DWPageHostFrameElement != null)
     {
         var ex = new PreviewPageNavigateArgs(HehWindow.PreviewPageNavigateEvent);
         OnPreviewPageNavigate(ex);
         if (!ex.Handled)
         {
             DWPageHostFrameElement.NavigationService.Navigate(content);
         }
     }
 }
Example #2
0
 private void NextNavigationButtonElement_Click(object sender, RoutedEventArgs e)
 {
     if (DWPageHostFrameElement != null)
     {
         if (DWPageHostFrameElement.NavigationService.CanGoForward)
         {
             var ex = new PreviewPageNavigateArgs(HehWindow.PreviewPageNavigateEvent);
             OnPreviewPageNavigate(ex);
             if (!ex.Handled)
             {
                 DWPageHostFrameElement.NavigationService.GoForward();
             }
         }
     }
 }
Example #3
0
 protected virtual void OnPreviewPageNavigate(PreviewPageNavigateArgs previewPageNavigateArgs)
 {
     RaiseEvent(previewPageNavigateArgs);
 }