Esempio n. 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);
         }
     }
 }
Esempio n. 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();
             }
         }
     }
 }
Esempio n. 3
0
 protected virtual void OnPreviewPageNavigate(PreviewPageNavigateArgs previewPageNavigateArgs)
 {
     RaiseEvent(previewPageNavigateArgs);
 }