src\Framework\System\Windows\Controls\DocumentViewer.cs (15)
1342SetValue(ExtentWidthPropertyKey, _documentScrollInfo.ExtentWidth);
1343SetValue(ExtentHeightPropertyKey, _documentScrollInfo.ExtentHeight);
1344SetValue(ViewportWidthPropertyKey, _documentScrollInfo.ViewportWidth);
1345SetValue(ViewportHeightPropertyKey, _documentScrollInfo.ViewportHeight);
1358SetValue(MasterPageNumberPropertyKey, _documentScrollInfo.FirstVisiblePageNumber + 1);
2482dv.SetValue(CanMoveLeftPropertyKey, newOffset > 0.0);
2483dv.SetValue(CanMoveRightPropertyKey, newOffset < (dv.ExtentWidth - dv.ViewportWidth));
2502dv.SetValue(CanMoveUpPropertyKey, newOffset > 0.0);
2503dv.SetValue(CanMoveDownPropertyKey, newOffset < (dv.ExtentHeight - dv.ViewportHeight));
2511dv.SetValue(CanMoveRightPropertyKey, dv.HorizontalOffset < ((double) e.NewValue - dv.ViewportWidth));
2519dv.SetValue(CanMoveDownPropertyKey, dv.VerticalOffset < ((double) e.NewValue - dv.ViewportHeight));
2528dv.SetValue(CanMoveRightPropertyKey, dv.HorizontalOffset < (dv.ExtentWidth - (double) e.NewValue));
2537dv.SetValue(CanMoveDownPropertyKey, dv.VerticalOffset < (dv.ExtentHeight - newHeight));
2594dv.SetValue(CanIncreaseZoomPropertyKey, newZoom < DocumentViewerConstants.MaximumZoom);
2595dv.SetValue(CanDecreaseZoomPropertyKey, newZoom > DocumentViewerConstants.MinimumZoom);
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (8)
1214SetValue(PageCountPropertyKey, (CurrentViewer != null) ? CurrentViewer.PageCount : 0);
1219SetValue(PageNumberPropertyKey, (CurrentViewer != null) ? CurrentViewer.PageNumber : 0);
1220SetValue(CanGoToPreviousPagePropertyKey, (CurrentViewer != null) ? CurrentViewer.CanGoToPreviousPage : false);
1225SetValue(CanGoToNextPagePropertyKey, (CurrentViewer != null) ? CurrentViewer.CanGoToNextPage : false);
1762viewer.SetValue(CanIncreaseZoomPropertyKey, BooleanBoxes.Box(DoubleUtil.GreaterThan(viewer.MaxZoom, viewer.Zoom)));
1763viewer.SetValue(CanDecreaseZoomPropertyKey, BooleanBoxes.Box(DoubleUtil.LessThan(viewer.MinZoom, viewer.Zoom)));
1801viewer.SetValue(CanIncreaseZoomPropertyKey, BooleanBoxes.Box(DoubleUtil.GreaterThan(viewer.MaxZoom, viewer.Zoom)));
1826viewer.SetValue(CanDecreaseZoomPropertyKey, BooleanBoxes.Box(DoubleUtil.LessThan(viewer.MinZoom, viewer.Zoom)));
src\Framework\System\Windows\Controls\ScrollViewer.cs (16)
367private set { SetValue(HorizontalOffsetPropertyKey, value); }
379private set { SetValue(VerticalOffsetPropertyKey, value); }
665SetValue(ContentVerticalOffsetPropertyKey, value);
699SetValue(ContentHorizontalOffsetPropertyKey, value);
1202SetValue(ComputedVerticalScrollBarVisibilityPropertyKey, _scrollVisibilityY);
1207SetValue(ComputedHorizontalScrollBarVisibilityPropertyKey, _scrollVisibilityX);
1240SetValue(ComputedHorizontalScrollBarVisibilityPropertyKey, _scrollVisibilityX);
1249SetValue(ComputedVerticalScrollBarVisibilityPropertyKey, _scrollVisibilityY);
1285SetValue(ComputedHorizontalScrollBarVisibilityPropertyKey, _scrollVisibilityX);
1293SetValue(ComputedVerticalScrollBarVisibilityPropertyKey, _scrollVisibilityY);
2397SetValue(ViewportWidthPropertyKey, _xSize);
2404SetValue(ViewportHeightPropertyKey, _ySize);
2411SetValue(ExtentWidthPropertyKey, _xExtent);
2418SetValue(ExtentHeightPropertyKey, _yExtent);
2426SetValue(ScrollableWidthPropertyKey, scrollableWidth);
2433SetValue(ScrollableHeightPropertyKey, scrollableHeight);