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