1 write to _documentScrollInfo
PresentationFramework (1)
System\Windows\Controls\DocumentViewer.cs (1)
2002
_documentScrollInfo
= new DocumentGrid
58 references to _documentScrollInfo
PresentationFramework (58)
System\Windows\Controls\DocumentViewer.cs (58)
125
_documentScrollInfo
?.FitColumns(pagesAcross);
906
_documentScrollInfo
.MakeVisible(element, rect, zeroIndexed);
916
_documentScrollInfo
?.ScrollToPreviousRow();
925
_documentScrollInfo
?.ScrollToNextRow();
934
_documentScrollInfo
?.MakePageVisible( 0 );
943
_documentScrollInfo
?.MakePageVisible( PageCount - 1 );
956
if (
_documentScrollInfo
!= null)
960
_documentScrollInfo
.MakePageVisible(pageNumber - 1);
970
_documentScrollInfo
?.ViewThumbnails();
978
_documentScrollInfo
?.FitToPageWidth();
986
_documentScrollInfo
?.FitToPageHeight();
994
_documentScrollInfo
?.FitColumns(MaxPagesAcross);
1005
_documentScrollInfo
?.FitColumns(pagesAcross);
1039
_documentScrollInfo
?.PageUp();
1047
_documentScrollInfo
?.PageDown();
1055
_documentScrollInfo
?.PageLeft();
1063
_documentScrollInfo
?.PageRight();
1071
_documentScrollInfo
?.LineUp();
1079
_documentScrollInfo
?.LineDown();
1087
_documentScrollInfo
?.LineLeft();
1095
_documentScrollInfo
?.LineRight();
1168
if (
_documentScrollInfo
!= null &&
_documentScrollInfo
.PageViews != null)
1171
pageViews =
_documentScrollInfo
.PageViews;
1252
SetValue(ExtentWidthPropertyKey,
_documentScrollInfo
.ExtentWidth);
1253
SetValue(ExtentHeightPropertyKey,
_documentScrollInfo
.ExtentHeight);
1254
SetValue(ViewportWidthPropertyKey,
_documentScrollInfo
.ViewportWidth);
1255
SetValue(ViewportHeightPropertyKey,
_documentScrollInfo
.ViewportHeight);
1257
if (HorizontalOffset !=
_documentScrollInfo
.HorizontalOffset)
1259
HorizontalOffset =
_documentScrollInfo
.HorizontalOffset;
1262
if (VerticalOffset !=
_documentScrollInfo
.VerticalOffset)
1264
VerticalOffset =
_documentScrollInfo
.VerticalOffset;
1268
SetValue(MasterPageNumberPropertyKey,
_documentScrollInfo
.FirstVisiblePageNumber + 1);
1271
double scrollZoom = ScaleToZoom(
_documentScrollInfo
.Scale);
1277
if (MaxPagesAcross !=
_documentScrollInfo
.MaxPagesAcross)
1279
MaxPagesAcross =
_documentScrollInfo
.MaxPagesAcross;
1307
FrameworkElement grid =
_documentScrollInfo
as FrameworkElement;
1376
return
_documentScrollInfo
;
1999
if (
_documentScrollInfo
== null)
2009
FrameworkElement fe =
_documentScrollInfo
as FrameworkElement;
2027
_documentScrollInfo
.VerticalPageSpacing = VerticalPageSpacing;
2028
_documentScrollInfo
.HorizontalPageSpacing = HorizontalPageSpacing;
2036
_documentScrollInfo
.Content = (Document != null) ? Document.DocumentPaginator as DynamicDocumentPaginator : null;
2065
Invariant.Assert(
_documentScrollInfo
!= null, "IDocumentScrollInfo cannot be null.");
2067
_scrollViewer.Content =
_documentScrollInfo
;
2068
_scrollViewer.ScrollInfo =
_documentScrollInfo
;
2071
if (
_documentScrollInfo
.Content != Document)
2136
_documentScrollInfo
?.MakeSelectionVisible();
2338
if (!dv._internalIDSIChange && (dv.
_documentScrollInfo
!= null))
2340
dv.
_documentScrollInfo
.SetHorizontalOffset(newOffset);
2358
if ( !dv._internalIDSIChange && (dv.
_documentScrollInfo
!= null))
2360
dv.
_documentScrollInfo
.SetVerticalOffset(newOffset);
2410
dv.
_documentScrollInfo
?.ShowPageBorders = (bool) e.NewValue;
2439
if (dv.
_documentScrollInfo
!= null)
2448
dv.
_documentScrollInfo
.SetScale(DocumentViewer.ZoomToScale(newZoom));
2492
dv.
_documentScrollInfo
.SetColumns((int) e.NewValue);
2516
dv.
_documentScrollInfo
?.VerticalPageSpacing = (double) e.NewValue;
2529
dv.
_documentScrollInfo
?.HorizontalPageSpacing = (double) e.NewValue;