1 write to _documentScrollInfo
PresentationFramework (1)
System\Windows\Controls\DocumentViewer.cs (1)
2066
_documentScrollInfo
= new DocumentGrid();
81 references to _documentScrollInfo
PresentationFramework (81)
System\Windows\Controls\DocumentViewer.cs (81)
138
if (
_documentScrollInfo
!= null)
140
_documentScrollInfo
.FitColumns(pagesAcross);
925
_documentScrollInfo
.MakeVisible(element, rect, zeroIndexed);
935
if (
_documentScrollInfo
!= null)
937
_documentScrollInfo
.ScrollToPreviousRow();
947
if (
_documentScrollInfo
!= null)
949
_documentScrollInfo
.ScrollToNextRow();
959
if (
_documentScrollInfo
!= null)
961
_documentScrollInfo
.MakePageVisible( 0 );
971
if (
_documentScrollInfo
!= null)
973
_documentScrollInfo
.MakePageVisible( PageCount - 1 );
987
if (
_documentScrollInfo
!= null)
991
_documentScrollInfo
.MakePageVisible(pageNumber - 1);
1001
if (
_documentScrollInfo
!= null)
1003
_documentScrollInfo
.ViewThumbnails();
1012
if (
_documentScrollInfo
!= null)
1014
_documentScrollInfo
.FitToPageWidth();
1023
if (
_documentScrollInfo
!= null)
1025
_documentScrollInfo
.FitToPageHeight();
1034
if (
_documentScrollInfo
!= null)
1036
_documentScrollInfo
.FitColumns(MaxPagesAcross);
1048
if (
_documentScrollInfo
!= null)
1050
_documentScrollInfo
.FitColumns(pagesAcross);
1085
if (
_documentScrollInfo
!= null)
1087
_documentScrollInfo
.PageUp();
1096
if (
_documentScrollInfo
!= null)
1098
_documentScrollInfo
.PageDown();
1107
if (
_documentScrollInfo
!= null)
1109
_documentScrollInfo
.PageLeft();
1118
if (
_documentScrollInfo
!= null)
1120
_documentScrollInfo
.PageRight();
1129
if (
_documentScrollInfo
!= null)
1131
_documentScrollInfo
.LineUp();
1140
if (
_documentScrollInfo
!= null)
1142
_documentScrollInfo
.LineDown();
1151
if (
_documentScrollInfo
!= null)
1153
_documentScrollInfo
.LineLeft();
1162
if (
_documentScrollInfo
!= null)
1164
_documentScrollInfo
.LineRight();
1238
if (
_documentScrollInfo
!= null &&
_documentScrollInfo
.PageViews != null)
1241
pageViews =
_documentScrollInfo
.PageViews;
1322
SetValue(ExtentWidthPropertyKey,
_documentScrollInfo
.ExtentWidth);
1323
SetValue(ExtentHeightPropertyKey,
_documentScrollInfo
.ExtentHeight);
1324
SetValue(ViewportWidthPropertyKey,
_documentScrollInfo
.ViewportWidth);
1325
SetValue(ViewportHeightPropertyKey,
_documentScrollInfo
.ViewportHeight);
1327
if (HorizontalOffset !=
_documentScrollInfo
.HorizontalOffset)
1329
HorizontalOffset =
_documentScrollInfo
.HorizontalOffset;
1332
if (VerticalOffset !=
_documentScrollInfo
.VerticalOffset)
1334
VerticalOffset =
_documentScrollInfo
.VerticalOffset;
1338
SetValue(MasterPageNumberPropertyKey,
_documentScrollInfo
.FirstVisiblePageNumber + 1);
1341
double scrollZoom = ScaleToZoom(
_documentScrollInfo
.Scale);
1347
if (MaxPagesAcross !=
_documentScrollInfo
.MaxPagesAcross)
1349
MaxPagesAcross =
_documentScrollInfo
.MaxPagesAcross;
1377
FrameworkElement grid =
_documentScrollInfo
as FrameworkElement;
1446
return
_documentScrollInfo
;
2063
if (
_documentScrollInfo
== null)
2067
_documentScrollInfo
.DocumentViewerOwner = this;
2071
FrameworkElement fe =
_documentScrollInfo
as FrameworkElement;
2089
_documentScrollInfo
.VerticalPageSpacing = VerticalPageSpacing;
2090
_documentScrollInfo
.HorizontalPageSpacing = HorizontalPageSpacing;
2098
_documentScrollInfo
.Content = (Document != null) ? Document.DocumentPaginator as DynamicDocumentPaginator : null;
2127
Invariant.Assert(
_documentScrollInfo
!= null, "IDocumentScrollInfo cannot be null.");
2129
_scrollViewer.Content =
_documentScrollInfo
;
2130
_scrollViewer.ScrollInfo =
_documentScrollInfo
;
2133
if (
_documentScrollInfo
.Content != Document)
2198
if (
_documentScrollInfo
!= null)
2200
_documentScrollInfo
.MakeSelectionVisible();
2407
if (!dv._internalIDSIChange && (dv.
_documentScrollInfo
!= null))
2409
dv.
_documentScrollInfo
.SetHorizontalOffset(newOffset);
2427
if ( !dv._internalIDSIChange && (dv.
_documentScrollInfo
!= null))
2429
dv.
_documentScrollInfo
.SetVerticalOffset(newOffset);
2479
if (dv.
_documentScrollInfo
!= null)
2481
dv.
_documentScrollInfo
.ShowPageBorders = (bool) e.NewValue;
2511
if (dv.
_documentScrollInfo
!= null)
2520
dv.
_documentScrollInfo
.SetScale(DocumentViewer.ZoomToScale(newZoom));
2564
dv.
_documentScrollInfo
.SetColumns((int) e.NewValue);
2588
if (dv.
_documentScrollInfo
!= null)
2590
dv.
_documentScrollInfo
.VerticalPageSpacing = (double) e.NewValue;
2604
if (dv.
_documentScrollInfo
!= null)
2606
dv.
_documentScrollInfo
.HorizontalPageSpacing = (double) e.NewValue;