44 references to CurrentViewer
PresentationFramework (44)
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (44)
95
if (
CurrentViewer
!= null)
97
DetachViewer(
CurrentViewer
);
128
if (
CurrentViewer
!= null)
130
canGoToPage =
CurrentViewer
.CanGoToPage(pageNumber);
698
if (
CurrentViewer
!= null)
700
CurrentViewer
.Print();
709
if (
CurrentViewer
!= null)
711
CurrentViewer
.CancelPrint();
788
if (IsKeyboardFocusWithin &&
CurrentViewer
!= null)
793
((FrameworkElement)
CurrentViewer
).Focus();
1055
if (
CurrentViewer
!= null)
1057
CurrentViewer
.SetDocument(newDocument);
1214
SetValue(PageCountPropertyKey, (
CurrentViewer
!= null) ?
CurrentViewer
.PageCount : 0);
1219
SetValue(PageNumberPropertyKey, (
CurrentViewer
!= null) ?
CurrentViewer
.PageNumber : 0);
1220
SetValue(CanGoToPreviousPagePropertyKey, (
CurrentViewer
!= null) ?
CurrentViewer
.CanGoToPreviousPage : false);
1225
SetValue(CanGoToNextPagePropertyKey, (
CurrentViewer
!= null) ?
CurrentViewer
.CanGoToNextPage : false);
1234
Invariant.Assert(
CurrentViewer
!= null && sender ==
CurrentViewer
);
1243
Invariant.Assert(
CurrentViewer
!= null && sender ==
CurrentViewer
);
1252
Invariant.Assert(
CurrentViewer
!= null && sender ==
CurrentViewer
);
1263
Invariant.Assert(
CurrentViewer
!= null && sender ==
CurrentViewer
);
1531
if (
CurrentViewer
!= null)
1533
CurrentViewer
.PreviousPage();
1542
if (
CurrentViewer
!= null)
1544
CurrentViewer
.NextPage();
1553
if (
CurrentViewer
!= null)
1555
CurrentViewer
.FirstPage();
1564
if (
CurrentViewer
!= null)
1566
CurrentViewer
.LastPage();
1587
if (
CurrentViewer
!= null &&
CurrentViewer
is UIElement)
1589
((UIElement)
CurrentViewer
).Focus();
1598
if (
CurrentViewer
!= null)
1600
CurrentViewer
.ShowFindResult(findResult);
1885
IFlowDocumentViewer currentViewer =
CurrentViewer
;
2016
IFlowDocumentViewer viewer =
CurrentViewer
;
2041
IFlowDocumentViewer viewer =
CurrentViewer
;