44 references to CurrentViewer
PresentationFramework (44)
System\Windows\Controls\FlowDocumentReader.cs (44)
94
if (
CurrentViewer
!= null)
96
DetachViewer(
CurrentViewer
);
127
if (
CurrentViewer
!= null)
129
canGoToPage =
CurrentViewer
.CanGoToPage(pageNumber);
697
if (
CurrentViewer
!= null)
699
CurrentViewer
.Print();
708
if (
CurrentViewer
!= null)
710
CurrentViewer
.CancelPrint();
787
if (IsKeyboardFocusWithin &&
CurrentViewer
!= null)
792
((FrameworkElement)
CurrentViewer
).Focus();
1049
if (
CurrentViewer
!= null)
1051
CurrentViewer
.SetDocument(newDocument);
1208
SetValue(PageCountPropertyKey, (
CurrentViewer
!= null) ?
CurrentViewer
.PageCount : 0);
1213
SetValue(PageNumberPropertyKey, (
CurrentViewer
!= null) ?
CurrentViewer
.PageNumber : 0);
1214
SetValue(CanGoToPreviousPagePropertyKey, (
CurrentViewer
!= null) ?
CurrentViewer
.CanGoToPreviousPage : false);
1219
SetValue(CanGoToNextPagePropertyKey, (
CurrentViewer
!= null) ?
CurrentViewer
.CanGoToNextPage : false);
1228
Invariant.Assert(
CurrentViewer
!= null && sender ==
CurrentViewer
);
1237
Invariant.Assert(
CurrentViewer
!= null && sender ==
CurrentViewer
);
1246
Invariant.Assert(
CurrentViewer
!= null && sender ==
CurrentViewer
);
1257
Invariant.Assert(
CurrentViewer
!= null && sender ==
CurrentViewer
);
1525
if (
CurrentViewer
!= null)
1527
CurrentViewer
.PreviousPage();
1536
if (
CurrentViewer
!= null)
1538
CurrentViewer
.NextPage();
1547
if (
CurrentViewer
!= null)
1549
CurrentViewer
.FirstPage();
1558
if (
CurrentViewer
!= null)
1560
CurrentViewer
.LastPage();
1581
if (
CurrentViewer
!= null &&
CurrentViewer
is UIElement)
1583
((UIElement)
CurrentViewer
).Focus();
1592
if (
CurrentViewer
!= null)
1594
CurrentViewer
.ShowFindResult(findResult);
1879
IFlowDocumentViewer currentViewer =
CurrentViewer
;
2010
IFlowDocumentViewer viewer =
CurrentViewer
;
2035
IFlowDocumentViewer viewer =
CurrentViewer
;