1 write to _documentScrollInfo
PresentationFramework (1)
System\Windows\Controls\DocumentViewer.cs (1)
2006
_documentScrollInfo
= new DocumentGrid
61 references to _documentScrollInfo
PresentationFramework (61)
System\Windows\Controls\DocumentViewer.cs (61)
126
_documentScrollInfo
?.FitColumns(pagesAcross);
910
_documentScrollInfo
.MakeVisible(element, rect, zeroIndexed);
920
_documentScrollInfo
?.ScrollToPreviousRow();
929
_documentScrollInfo
?.ScrollToNextRow();
938
_documentScrollInfo
?.MakePageVisible( 0 );
947
_documentScrollInfo
?.MakePageVisible( PageCount - 1 );
960
if (
_documentScrollInfo
!= null)
964
_documentScrollInfo
.MakePageVisible(pageNumber - 1);
974
_documentScrollInfo
?.ViewThumbnails();
982
_documentScrollInfo
?.FitToPageWidth();
990
_documentScrollInfo
?.FitToPageHeight();
998
_documentScrollInfo
?.FitColumns(MaxPagesAcross);
1009
_documentScrollInfo
?.FitColumns(pagesAcross);
1043
_documentScrollInfo
?.PageUp();
1051
_documentScrollInfo
?.PageDown();
1059
_documentScrollInfo
?.PageLeft();
1067
_documentScrollInfo
?.PageRight();
1075
_documentScrollInfo
?.LineUp();
1083
_documentScrollInfo
?.LineDown();
1091
_documentScrollInfo
?.LineLeft();
1099
_documentScrollInfo
?.LineRight();
1172
if (
_documentScrollInfo
!= null &&
_documentScrollInfo
.PageViews != null)
1175
pageViews =
_documentScrollInfo
.PageViews;
1256
SetValue(ExtentWidthPropertyKey,
_documentScrollInfo
.ExtentWidth);
1257
SetValue(ExtentHeightPropertyKey,
_documentScrollInfo
.ExtentHeight);
1258
SetValue(ViewportWidthPropertyKey,
_documentScrollInfo
.ViewportWidth);
1259
SetValue(ViewportHeightPropertyKey,
_documentScrollInfo
.ViewportHeight);
1261
if (HorizontalOffset !=
_documentScrollInfo
.HorizontalOffset)
1263
HorizontalOffset =
_documentScrollInfo
.HorizontalOffset;
1266
if (VerticalOffset !=
_documentScrollInfo
.VerticalOffset)
1268
VerticalOffset =
_documentScrollInfo
.VerticalOffset;
1272
SetValue(MasterPageNumberPropertyKey,
_documentScrollInfo
.FirstVisiblePageNumber + 1);
1275
double scrollZoom = ScaleToZoom(
_documentScrollInfo
.Scale);
1281
if (MaxPagesAcross !=
_documentScrollInfo
.MaxPagesAcross)
1283
MaxPagesAcross =
_documentScrollInfo
.MaxPagesAcross;
1311
FrameworkElement grid =
_documentScrollInfo
as FrameworkElement;
1380
return
_documentScrollInfo
;
2003
if (
_documentScrollInfo
== null)
2013
FrameworkElement fe =
_documentScrollInfo
as FrameworkElement;
2031
_documentScrollInfo
.VerticalPageSpacing = VerticalPageSpacing;
2032
_documentScrollInfo
.HorizontalPageSpacing = HorizontalPageSpacing;
2040
_documentScrollInfo
.Content = (Document != null) ? Document.DocumentPaginator as DynamicDocumentPaginator : null;
2069
Invariant.Assert(
_documentScrollInfo
!= null, "IDocumentScrollInfo cannot be null.");
2071
_scrollViewer.Content =
_documentScrollInfo
;
2072
_scrollViewer.ScrollInfo =
_documentScrollInfo
;
2075
if (
_documentScrollInfo
.Content != Document)
2140
_documentScrollInfo
?.MakeSelectionVisible();
2342
if (!dv._internalIDSIChange && (dv.
_documentScrollInfo
!= null))
2344
dv.
_documentScrollInfo
.SetHorizontalOffset(newOffset);
2362
if ( !dv._internalIDSIChange && (dv.
_documentScrollInfo
!= null))
2364
dv.
_documentScrollInfo
.SetVerticalOffset(newOffset);
2414
if (dv.
_documentScrollInfo
!= null)
2416
dv.
_documentScrollInfo
.ShowPageBorders = (bool) e.NewValue;
2446
if (dv.
_documentScrollInfo
!= null)
2455
dv.
_documentScrollInfo
.SetScale(DocumentViewer.ZoomToScale(newZoom));
2499
dv.
_documentScrollInfo
.SetColumns((int) e.NewValue);
2523
if (dv.
_documentScrollInfo
!= null)
2525
dv.
_documentScrollInfo
.VerticalPageSpacing = (double) e.NewValue;
2539
if (dv.
_documentScrollInfo
!= null)
2541
dv.
_documentScrollInfo
.HorizontalPageSpacing = (double) e.NewValue;