44 references to CurrentViewer
PresentationFramework (44)
System\Windows\Controls\FlowDocumentReader.cs (44)
89if (CurrentViewer != null) 91DetachViewer(CurrentViewer); 122if (CurrentViewer != null) 124canGoToPage = CurrentViewer.CanGoToPage(pageNumber); 692if (CurrentViewer != null) 694CurrentViewer.Print(); 703if (CurrentViewer != null) 705CurrentViewer.CancelPrint(); 782if (IsKeyboardFocusWithin && CurrentViewer != null) 787((FrameworkElement)CurrentViewer).Focus(); 1044if (CurrentViewer != null) 1046CurrentViewer.SetDocument(newDocument); 1205SetValue(PageCountPropertyKey, (CurrentViewer != null) ? CurrentViewer.PageCount : 0); 1210SetValue(PageNumberPropertyKey, (CurrentViewer != null) ? CurrentViewer.PageNumber : 0); 1211SetValue(CanGoToPreviousPagePropertyKey, (CurrentViewer != null) ? CurrentViewer.CanGoToPreviousPage : false); 1216SetValue(CanGoToNextPagePropertyKey, (CurrentViewer != null) ? CurrentViewer.CanGoToNextPage : false); 1225Invariant.Assert(CurrentViewer != null && sender == CurrentViewer); 1234Invariant.Assert(CurrentViewer != null && sender == CurrentViewer); 1243Invariant.Assert(CurrentViewer != null && sender == CurrentViewer); 1254Invariant.Assert(CurrentViewer != null && sender == CurrentViewer); 1521if (CurrentViewer != null) 1523CurrentViewer.PreviousPage(); 1532if (CurrentViewer != null) 1534CurrentViewer.NextPage(); 1543if (CurrentViewer != null) 1545CurrentViewer.FirstPage(); 1554if (CurrentViewer != null) 1556CurrentViewer.LastPage(); 1577if (CurrentViewer != null && CurrentViewer is UIElement) 1579((UIElement)CurrentViewer).Focus(); 1588if (CurrentViewer != null) 1590CurrentViewer.ShowFindResult(findResult); 1875IFlowDocumentViewer currentViewer = CurrentViewer; 2006IFlowDocumentViewer viewer = CurrentViewer; 2031IFlowDocumentViewer viewer = CurrentViewer;