1 write to _documentScrollInfo
PresentationFramework (1)
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2111
_documentScrollInfo
= new DocumentGrid();
81 references to _documentScrollInfo
PresentationFramework (81)
src\Framework\System\Windows\Controls\DocumentViewer.cs (81)
152
if (
_documentScrollInfo
!= null)
154
_documentScrollInfo
.FitColumns(pagesAcross);
945
_documentScrollInfo
.MakeVisible(element, rect, zeroIndexed);
955
if (
_documentScrollInfo
!= null)
957
_documentScrollInfo
.ScrollToPreviousRow();
967
if (
_documentScrollInfo
!= null)
969
_documentScrollInfo
.ScrollToNextRow();
979
if (
_documentScrollInfo
!= null)
981
_documentScrollInfo
.MakePageVisible( 0 );
991
if (
_documentScrollInfo
!= null)
993
_documentScrollInfo
.MakePageVisible( PageCount - 1 );
1007
if (
_documentScrollInfo
!= null)
1011
_documentScrollInfo
.MakePageVisible(pageNumber - 1);
1021
if (
_documentScrollInfo
!= null)
1023
_documentScrollInfo
.ViewThumbnails();
1032
if (
_documentScrollInfo
!= null)
1034
_documentScrollInfo
.FitToPageWidth();
1043
if (
_documentScrollInfo
!= null)
1045
_documentScrollInfo
.FitToPageHeight();
1054
if (
_documentScrollInfo
!= null)
1056
_documentScrollInfo
.FitColumns(MaxPagesAcross);
1068
if (
_documentScrollInfo
!= null)
1070
_documentScrollInfo
.FitColumns(pagesAcross);
1105
if (
_documentScrollInfo
!= null)
1107
_documentScrollInfo
.PageUp();
1116
if (
_documentScrollInfo
!= null)
1118
_documentScrollInfo
.PageDown();
1127
if (
_documentScrollInfo
!= null)
1129
_documentScrollInfo
.PageLeft();
1138
if (
_documentScrollInfo
!= null)
1140
_documentScrollInfo
.PageRight();
1149
if (
_documentScrollInfo
!= null)
1151
_documentScrollInfo
.LineUp();
1160
if (
_documentScrollInfo
!= null)
1162
_documentScrollInfo
.LineDown();
1171
if (
_documentScrollInfo
!= null)
1173
_documentScrollInfo
.LineLeft();
1182
if (
_documentScrollInfo
!= null)
1184
_documentScrollInfo
.LineRight();
1258
if (
_documentScrollInfo
!= null &&
_documentScrollInfo
.PageViews != null)
1261
pageViews =
_documentScrollInfo
.PageViews;
1342
SetValue(ExtentWidthPropertyKey,
_documentScrollInfo
.ExtentWidth);
1343
SetValue(ExtentHeightPropertyKey,
_documentScrollInfo
.ExtentHeight);
1344
SetValue(ViewportWidthPropertyKey,
_documentScrollInfo
.ViewportWidth);
1345
SetValue(ViewportHeightPropertyKey,
_documentScrollInfo
.ViewportHeight);
1347
if (HorizontalOffset !=
_documentScrollInfo
.HorizontalOffset)
1349
HorizontalOffset =
_documentScrollInfo
.HorizontalOffset;
1352
if (VerticalOffset !=
_documentScrollInfo
.VerticalOffset)
1354
VerticalOffset =
_documentScrollInfo
.VerticalOffset;
1358
SetValue(MasterPageNumberPropertyKey,
_documentScrollInfo
.FirstVisiblePageNumber + 1);
1361
double scrollZoom = ScaleToZoom(
_documentScrollInfo
.Scale);
1367
if (MaxPagesAcross !=
_documentScrollInfo
.MaxPagesAcross)
1369
MaxPagesAcross =
_documentScrollInfo
.MaxPagesAcross;
1397
FrameworkElement grid =
_documentScrollInfo
as FrameworkElement;
1466
return
_documentScrollInfo
;
2108
if (
_documentScrollInfo
== null)
2112
_documentScrollInfo
.DocumentViewerOwner = this;
2116
FrameworkElement fe =
_documentScrollInfo
as FrameworkElement;
2134
_documentScrollInfo
.VerticalPageSpacing = VerticalPageSpacing;
2135
_documentScrollInfo
.HorizontalPageSpacing = HorizontalPageSpacing;
2143
_documentScrollInfo
.Content = (Document != null) ? Document.DocumentPaginator as DynamicDocumentPaginator : null;
2172
Invariant.Assert(
_documentScrollInfo
!= null, "IDocumentScrollInfo cannot be null.");
2174
_scrollViewer.Content =
_documentScrollInfo
;
2175
_scrollViewer.ScrollInfo =
_documentScrollInfo
;
2178
if (
_documentScrollInfo
.Content != Document)
2253
if (
_documentScrollInfo
!= null)
2255
_documentScrollInfo
.MakeSelectionVisible();
2478
if (!dv._internalIDSIChange && (dv.
_documentScrollInfo
!= null))
2480
dv.
_documentScrollInfo
.SetHorizontalOffset(newOffset);
2498
if ( !dv._internalIDSIChange && (dv.
_documentScrollInfo
!= null))
2500
dv.
_documentScrollInfo
.SetVerticalOffset(newOffset);
2550
if (dv.
_documentScrollInfo
!= null)
2552
dv.
_documentScrollInfo
.ShowPageBorders = (bool) e.NewValue;
2582
if (dv.
_documentScrollInfo
!= null)
2591
dv.
_documentScrollInfo
.SetScale(DocumentViewer.ZoomToScale(newZoom));
2635
dv.
_documentScrollInfo
.SetColumns((int) e.NewValue);
2660
if (dv.
_documentScrollInfo
!= null)
2662
dv.
_documentScrollInfo
.VerticalPageSpacing = (double) e.NewValue;
2676
if (dv.
_documentScrollInfo
!= null)
2678
dv.
_documentScrollInfo
.HorizontalPageSpacing = (double) e.NewValue;