1 write to _scrollData
PresentationFramework (1)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
9413
if (_scrollData == null) {
_scrollData
= new ScrollData(); }
375 references to _scrollData
PresentationFramework (375)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (375)
456
_scrollData
._computedOffset.X = startingOffset;
460
_scrollData
._computedOffset.Y = startingOffset;
490
if (!DoubleUtil.AreClose(scrollX,
_scrollData
._offset.X))
492
Vector oldViewportOffset =
_scrollData
._offset;
495
_scrollData
._offset.X = scrollX;
498
OnViewportOffsetChanged(oldViewportOffset,
_scrollData
._offset);
503
_scrollData
.SetHorizontalScrollType(oldViewportOffset.X, scrollX);
528
_scrollData
._offset.X = Math.Floor(
_scrollData
._offset.X);
529
_scrollData
._computedOffset.X = Math.Floor(
_scrollData
._computedOffset.X);
537
_scrollData
._offset.X = UIElement.RoundLayoutValue(
_scrollData
._offset.X, dpi.DpiScaleX);
538
_scrollData
._computedOffset.X = UIElement.RoundLayoutValue(
_scrollData
._computedOffset.X, dpi.DpiScaleX);
560
_scrollData
._computedOffset.X = startingOffset;
574
_scrollData
._offset.X = ScrollContentPresenter.CoerceOffset(scrollX,
_scrollData
._extent.Width,
_scrollData
._viewport.Width);
575
_scrollData
._computedOffset.X =
_scrollData
._offset.X;
583
_scrollData
._offset,
_scrollData
._extent,
_scrollData
._computedOffset);
616
if (!DoubleUtil.AreClose(scrollY,
_scrollData
._offset.Y))
618
Vector oldViewportOffset =
_scrollData
._offset;
621
_scrollData
._offset.Y = scrollY;
624
OnViewportOffsetChanged(oldViewportOffset,
_scrollData
._offset);
630
_scrollData
.SetVerticalScrollType(oldViewportOffset.Y, scrollY);
654
_scrollData
._offset.Y = Math.Floor(
_scrollData
._offset.Y);
655
_scrollData
._computedOffset.Y = Math.Floor(
_scrollData
._computedOffset.Y);
663
_scrollData
._offset.Y = UIElement.RoundLayoutValue(
_scrollData
._offset.Y, dpi.DpiScaleY);
664
_scrollData
._computedOffset.Y = UIElement.RoundLayoutValue(
_scrollData
._computedOffset.Y, dpi.DpiScaleY);
686
_scrollData
._computedOffset.Y = startingOffset;
700
_scrollData
._offset.Y = ScrollContentPresenter.CoerceOffset(scrollY,
_scrollData
._extent.Height,
_scrollData
._viewport.Height);
701
_scrollData
._computedOffset.Y =
_scrollData
._offset.Y;
715
_scrollData
._offset,
_scrollData
._extent,
_scrollData
._computedOffset);
753
double expectedDistanceBetweenViewports = (isHorizontal ?
_scrollData
._offset.X -
_scrollData
._computedOffset.X :
_scrollData
._offset.Y -
_scrollData
._computedOffset.Y);
761
if (
_scrollData
._firstContainerInViewport != null)
773
_scrollData
._offset.X += expectedDistanceBetweenViewports;
777
_scrollData
._offset.Y += expectedDistanceBetweenViewports;
781
if (
_scrollData
._firstContainerInViewport == null)
783
_scrollData
._firstContainerInViewport = ComputeFirstContainerInViewport(
794
out
_scrollData
._firstContainerOffsetFromViewport);
796
if (
_scrollData
._firstContainerInViewport != null)
798
_scrollData
._expectedDistanceBetweenViewports = expectedDistanceBetweenViewports;
807
_scrollData
._expectedDistanceBetweenViewports += expectedDistanceBetweenViewports;
813
_scrollData
._expectedDistanceBetweenViewports,
814
_scrollData
._firstContainerInViewport,
815
_scrollData
._firstContainerOffsetFromViewport);
832
Debug.Assert(
_scrollData
._firstContainerInViewport != null, "Must have an anchor element");
836
if (itemsControl == null || !VisualTreeHelper.IsAncestorOf(this,
_scrollData
._firstContainerInViewport))
847
_scrollData
._expectedDistanceBetweenViewports,
848
_scrollData
._firstContainerInViewport);
877
FrameworkElement prevFirstContainerInViewport =
_scrollData
._firstContainerInViewport;
878
double prevFirstContainerOffsetFromViewport =
_scrollData
._firstContainerOffsetFromViewport;
879
double prevFirstContainerOffset = FindScrollOffset(
_scrollData
._firstContainerInViewport);
895
bool success = (LayoutDoubleUtil.AreClose(
_scrollData
._expectedDistanceBetweenViewports, actualDistanceBetweenViewports));
912
double diff = actualDistanceBetweenViewports -
_scrollData
._expectedDistanceBetweenViewports;
933
success = DoubleUtil.GreaterThanOrClose(
_scrollData
._computedOffset.X,
934
_scrollData
._extent.Width -
_scrollData
._viewport.Width);
938
success = DoubleUtil.GreaterThanOrClose(
_scrollData
._computedOffset.Y,
939
_scrollData
._extent.Height -
_scrollData
._viewport.Height);
949
_scrollData
._computedOffset.X = currFirstContainerOffset - currFirstContainerOffsetFromViewport;
950
_scrollData
._offset.X =
_scrollData
._computedOffset.X;
954
_scrollData
._computedOffset.Y = currFirstContainerOffset - currFirstContainerOffsetFromViewport;
955
_scrollData
._offset.Y =
_scrollData
._computedOffset.Y;
967
_scrollData
._offset);
977
_scrollData
._computedOffset.X = prevFirstContainerOffset - prevFirstContainerOffsetFromViewport;
979
actualOffset =
_scrollData
._computedOffset.X + actualDistanceBetweenViewports;
980
expectedOffset =
_scrollData
._computedOffset.X +
_scrollData
._expectedDistanceBetweenViewports;
982
if (DoubleUtil.LessThan(expectedOffset, 0) || DoubleUtil.GreaterThan(expectedOffset,
_scrollData
._extent.Width -
_scrollData
._viewport.Width))
984
Debug.Assert(DoubleUtil.AreClose(actualOffset, 0) || DoubleUtil.AreClose(actualOffset,
_scrollData
._extent.Width -
_scrollData
._viewport.Width), "The actual offset should already be at the beginning or the end.");
985
_scrollData
._computedOffset.X = actualOffset;
986
_scrollData
._offset.X = actualOffset;
991
_scrollData
._offset.X = expectedOffset;
996
_scrollData
._computedOffset.Y = prevFirstContainerOffset - prevFirstContainerOffsetFromViewport;
998
actualOffset =
_scrollData
._computedOffset.Y + actualDistanceBetweenViewports;
999
expectedOffset =
_scrollData
._computedOffset.Y +
_scrollData
._expectedDistanceBetweenViewports;
1001
if (DoubleUtil.LessThan(expectedOffset, 0) || DoubleUtil.GreaterThan(expectedOffset,
_scrollData
._extent.Height -
_scrollData
._viewport.Height))
1003
Debug.Assert(DoubleUtil.AreClose(actualOffset, 0) || DoubleUtil.AreClose(actualOffset,
_scrollData
._extent.Height -
_scrollData
._viewport.Height), "The actual offset should already be at the beginning or the end.");
1004
_scrollData
._computedOffset.Y = actualOffset;
1005
_scrollData
._offset.Y = actualOffset;
1010
_scrollData
._offset.Y = expectedOffset;
1017
remeasure, expectedOffset, actualOffset,
_scrollData
._offset,
_scrollData
._computedOffset);
1060
if (
_scrollData
== null)
1063
if (
_scrollData
._firstContainerInViewport != null)
1065
DependencyObject element =
_scrollData
._firstContainerInViewport;
1079
_scrollData
._firstContainerInViewport = null;
1080
_scrollData
._firstContainerOffsetFromViewport = 0;
1081
_scrollData
._expectedDistanceBetweenViewports = 0;
1474
alignTop = (
_scrollData
._bringIntoViewLeafContainer == visual && AlignTopOfBringIntoViewContainer);
1475
alignBottom = (
_scrollData
._bringIntoViewLeafContainer == visual &&
1492
newOffset.X = ScrollContentPresenter.CoerceOffset(newOffset.X,
_scrollData
._extent.Width,
_scrollData
._viewport.Width);
1493
newOffset.Y = ScrollContentPresenter.CoerceOffset(newOffset.Y,
_scrollData
._extent.Height,
_scrollData
._viewport.Height);
1495
if (!LayoutDoubleUtil.AreClose(newOffset.X,
_scrollData
._offset.X) ||
1496
!LayoutDoubleUtil.AreClose(newOffset.Y,
_scrollData
._offset.Y))
1499
if (visual !=
_scrollData
._bringIntoViewLeafContainer)
1501
_scrollData
._bringIntoViewLeafContainer = visual;
1506
Vector oldOffset =
_scrollData
._offset;
1507
_scrollData
._offset = newOffset;
1512
_scrollData
._offset,
1514
_scrollData
._bringIntoViewLeafContainer);
1522
_scrollData
.SetHorizontalScrollType(oldOffset.X, newOffset.X);
1523
_scrollData
.SetVerticalScrollType(oldOffset.Y, newOffset.Y);
1532
_scrollData
._computedOffset = newOffset;
1550
_scrollData
._bringIntoViewLeafContainer = null;
1777
if (
_scrollData
== null) { return false; }
1778
return
_scrollData
._allowHorizontal;
1783
if (
_scrollData
._allowHorizontal != value)
1785
_scrollData
._allowHorizontal = value;
1800
if (
_scrollData
== null) { return false; }
1801
return
_scrollData
._allowVertical;
1806
if (
_scrollData
._allowVertical != value)
1808
_scrollData
._allowVertical = value;
1821
if (
_scrollData
== null) { return 0.0; }
1822
return
_scrollData
._extent.Width;
1833
if (
_scrollData
== null) { return 0.0; }
1834
return
_scrollData
._extent.Height;
1845
if (
_scrollData
== null) { return 0.0; }
1846
return
_scrollData
._viewport.Width;
1857
if (
_scrollData
== null) { return 0.0; }
1858
return
_scrollData
._viewport.Height;
1870
if (
_scrollData
== null) { return 0.0; }
1871
return
_scrollData
._computedOffset.X;
1883
if (
_scrollData
== null) { return 0.0; }
1884
return
_scrollData
._computedOffset.Y;
1897
if (
_scrollData
== null) return null;
1898
return
_scrollData
._scrollOwner;
1902
if (
_scrollData
== null) EnsureScrollData();
1903
if (value !=
_scrollData
._scrollOwner)
1906
_scrollData
._scrollOwner = value;
2562
if (IsScrolling &&
_scrollData
._firstContainerInViewport != null && !areContainersUniformlySized)
2603
_scrollData
._offset.X += delta;
2607
_scrollData
._offset.Y += delta;
2618
"newVpOff:",
_scrollData
._offset);
3215
return StackPanel.StackMeasureHelper(this,
_scrollData
, constraint);
3220
return StackPanel.StackArrangeHelper(this,
_scrollData
, arrangeSize);
3565
_scrollData
._maxDesiredSize = new Size();
3831
_scrollData
._extent.Width = distance;
3835
_scrollData
._extent.Height = distance;
4254
offsetX =
_scrollData
._offset.X;
4255
offsetY =
_scrollData
._offset.Y;
4256
extent =
_scrollData
._extent;
4257
viewportSize =
_scrollData
._viewport;
4261
_scrollData
._maxDesiredSize = new Size();
4286
WasLastMeasurePassAnchored = (
_scrollData
._firstContainerInViewport != null) || (
_scrollData
._bringIntoViewLeafContainer != null);
4576
_scrollData
._bringIntoViewLeafContainer = null;
4584
_scrollData
._offset =
_scrollData
._computedOffset;
4710
if (DoubleUtil.GreaterThan(extendedViewport.X + extendedViewport.Width,
_scrollData
._extent.Width))
4712
extendedViewport.Width =
_scrollData
._extent.Width - extendedViewport.X;
4745
if (DoubleUtil.GreaterThan(extendedViewport.X + extendedViewport.Width / approxSizeOfLogicalUnit,
_scrollData
._extent.Width))
4747
extendedViewport.Width = (
_scrollData
._extent.Width - extendedViewport.X) * approxSizeOfLogicalUnit;
4816
if (DoubleUtil.GreaterThan(extendedViewport.Y + extendedViewport.Height,
_scrollData
._extent.Height))
4818
extendedViewport.Height =
_scrollData
._extent.Height - extendedViewport.Y;
4851
if (DoubleUtil.GreaterThan(extendedViewport.Y + extendedViewport.Height / approxSizeOfLogicalUnit,
_scrollData
._extent.Height))
4853
extendedViewport.Height = (
_scrollData
._extent.Height - extendedViewport.Y) * approxSizeOfLogicalUnit;
4878
if (!
_scrollData
.IsEmpty)
4887
if (!
_scrollData
.IsEmpty)
8279
rcChild.Y = -1.0 *
_scrollData
._computedOffset.Y;
8285
rcChild.X = -1.0 *
_scrollData
._computedOffset.X;
8290
rcChild.X = -1.0 *
_scrollData
._computedOffset.X;
8291
rcChild.Y = -1.0 *
_scrollData
._computedOffset.Y;
9413
if (
_scrollData
== null) { _scrollData = new ScrollData(); }
9416
Debug.Assert(
_scrollData
._scrollOwner != null, "Scrolling an unconnected VSP");
9427
element.
_scrollData
.ClearLayout();
9469
Vector offsetForScrollViewerRemeasure =
_scrollData
._offset;
9513
stackPixelSize.Height =
_scrollData
._extent.Height;
9520
_scrollData
._maxDesiredSize.Height = Math.Max(
_scrollData
._maxDesiredSize.Height, stackPixelSize.Height);
9521
stackPixelSize.Height =
_scrollData
._maxDesiredSize.Height;
9540
stackPixelSize.Width =
_scrollData
._extent.Width;
9547
_scrollData
._maxDesiredSize.Width = Math.Max(
_scrollData
._maxDesiredSize.Width, stackPixelSize.Width);
9548
stackPixelSize.Width =
_scrollData
._maxDesiredSize.Width;
9604
"o:",
_scrollData
._offset,
9620
isHorizontal ? (!DoubleUtil.AreClose(computedViewportOffset.X,
_scrollData
._offset.X) ||
9621
(IsScrollActive && computedViewportOffset.X > 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.X,
_scrollData
.Extent.Width-
_scrollData
.Viewport.Width)))
9622
: (!DoubleUtil.AreClose(computedViewportOffset.Y,
_scrollData
._offset.Y) ||
9623
(IsScrollActive && computedViewportOffset.Y > 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.Y,
_scrollData
.Extent.Height-
_scrollData
.Viewport.Height)));
9625
isHorizontal ? (!DoubleUtil.AreClose(computedViewportOffset.Y,
_scrollData
._offset.Y) ||
9626
(IsScrollActive && computedViewportOffset.Y > 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.Y,
_scrollData
.Extent.Height-
_scrollData
.Viewport.Height)))
9627
: (!DoubleUtil.AreClose(computedViewportOffset.X,
_scrollData
._offset.X) ||
9628
(IsScrollActive && computedViewportOffset.X > 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.X,
_scrollData
.Extent.Width-
_scrollData
.Viewport.Width)));
9664
_scrollData
.HorizontalScrollType = ScrollType.ToEnd;
9687
_scrollData
.VerticalScrollType = ScrollType.ToEnd;
9724
bool viewportSizeChanged = !DoubleUtil.AreClose(viewportSize,
_scrollData
._viewport);
9725
bool extentSizeChanged = !DoubleUtil.AreClose(extentSize,
_scrollData
._extent);
9726
bool computedViewportOffsetChanged = !DoubleUtil.AreClose(computedViewportOffset,
_scrollData
._computedOffset);
9731
extentWidthChanged = !DoubleUtil.AreClose(extentSize.Width,
_scrollData
._extent.Width);
9732
extentHeightChanged = !DoubleUtil.AreClose(extentSize.Height,
_scrollData
._extent.Height);
9871
!DoubleUtil.AreClose(
_scrollData
._viewport.Width, viewportSize.Width))
9877
"vpSz:",
_scrollData
._viewport.Width, viewportSize.Width,
9878
"newOff:",
_scrollData
._offset);
9887
viewportSize.Width =
_scrollData
._viewport.Width;
9901
if (
_scrollData
.HorizontalScrollType == ScrollType.ToEnd ||
9909
"ext:",
_scrollData
._extent.Width, extentSize.Width,
9915
_scrollData
.HorizontalScrollType = ScrollType.ToEnd;
9924
else if (
_scrollData
.HorizontalScrollType == ScrollType.Absolute)
9926
if (!DoubleUtil.AreClose(
_scrollData
._extent.Width, 0) &&
9931
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.X/extentSize.Width,
_scrollData
._offset.X/
_scrollData
._extent.Width))
9934
viewportOffset.X = (extentSize.Width *
_scrollData
._offset.X) /
_scrollData
._extent.Width;
9940
if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.X)/extentSize.Width, Math.Floor(
_scrollData
._offset.X)/
_scrollData
._extent.Width))
9943
viewportOffset.X = Math.Floor((extentSize.Width * Math.Floor(
_scrollData
._offset.X)) /
_scrollData
._extent.Width);
9951
"expRat:",
_scrollData
._offset.X,
_scrollData
._extent.Width, (
_scrollData
._offset.X/
_scrollData
._extent.Width),
9968
if (
_scrollData
.VerticalScrollType == ScrollType.ToEnd ||
9977
"ext:",
_scrollData
._extent.Height, extentSize.Height,
9983
_scrollData
.VerticalScrollType = ScrollType.ToEnd;
9991
else if (
_scrollData
.VerticalScrollType == ScrollType.Absolute)
9993
if (!DoubleUtil.AreClose(
_scrollData
._extent.Height, 0) &&
9996
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.Y/extentSize.Height,
_scrollData
._offset.Y/
_scrollData
._extent.Height))
9999
viewportOffset.Y = (extentSize.Height *
_scrollData
._offset.Y) /
_scrollData
._extent.Height;
10006
"expRat:",
_scrollData
._offset.Y,
_scrollData
._extent.Height, (
_scrollData
._offset.Y/
_scrollData
._extent.Height),
10088
!DoubleUtil.AreClose(
_scrollData
._viewport.Height, viewportSize.Height))
10094
"vpSz:",
_scrollData
._viewport.Height, viewportSize.Height,
10095
"newOff:",
_scrollData
._offset);
10104
viewportSize.Height =
_scrollData
._viewport.Height;
10118
if (
_scrollData
.VerticalScrollType == ScrollType.ToEnd ||
10126
"ext:",
_scrollData
._extent.Height, extentSize.Height,
10132
_scrollData
.VerticalScrollType = ScrollType.ToEnd;
10141
else if (
_scrollData
.VerticalScrollType == ScrollType.Absolute)
10143
if (!DoubleUtil.AreClose(
_scrollData
._extent.Height, 0) &&
10148
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.Y/extentSize.Height,
_scrollData
._offset.Y/
_scrollData
._extent.Height))
10151
viewportOffset.Y = (extentSize.Height *
_scrollData
._offset.Y) /
_scrollData
._extent.Height;
10157
if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.Y)/extentSize.Height, Math.Floor(
_scrollData
._offset.Y)/
_scrollData
._extent.Height))
10160
viewportOffset.Y = Math.Floor((extentSize.Height * Math.Floor(
_scrollData
._offset.Y)) /
_scrollData
._extent.Height);
10167
"expRat:",
_scrollData
._offset.Y,
_scrollData
._extent.Height, (
_scrollData
._offset.Y/
_scrollData
._extent.Height),
10184
if (
_scrollData
.HorizontalScrollType == ScrollType.ToEnd ||
10193
"ext:",
_scrollData
._extent.Width, extentSize.Width,
10199
_scrollData
.HorizontalScrollType = ScrollType.ToEnd;
10207
else if (
_scrollData
.HorizontalScrollType == ScrollType.Absolute)
10209
if (!DoubleUtil.AreClose(
_scrollData
._extent.Width, 0) &&
10212
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.X/extentSize.Width,
_scrollData
._offset.X/
_scrollData
._extent.Width))
10215
viewportOffset.X = (extentSize.Width *
_scrollData
._offset.X) /
_scrollData
._extent.Width;
10222
"expRat:",
_scrollData
._offset.X,
_scrollData
._extent.Width, (
_scrollData
._offset.X/
_scrollData
._extent.Width),
10238
if (isHorizontal &&
_scrollData
.HorizontalScrollType == ScrollType.ToEnd)
10242
if (!isHorizontal &&
_scrollData
.VerticalScrollType == ScrollType.ToEnd)
10256
viewportSizeChanged = !DoubleUtil.AreClose(viewportSize,
_scrollData
._viewport);
10261
"off:",
_scrollData
._offset, viewportOffset,
10262
"ext:",
_scrollData
._extent, extentSize,
10263
"co:",
_scrollData
._computedOffset, computedViewportOffset,
10264
"vp:",
_scrollData
._viewport, viewportSize);
10270
Vector oldViewportOffset =
_scrollData
._computedOffset;
10271
Size oldViewportSize =
_scrollData
._viewport;
10273
_scrollData
._viewport = viewportSize;
10274
_scrollData
._extent = extentSize;
10275
_scrollData
._computedOffset = computedViewportOffset;
10292
_scrollData
._offset = viewportOffset;
10365
stackPixelSize.Height =
_scrollData
._extent.Height;
10372
_scrollData
._maxDesiredSize.Height = Math.Max(
_scrollData
._maxDesiredSize.Height, stackPixelSize.Height);
10373
stackPixelSize.Height =
_scrollData
._maxDesiredSize.Height;
10392
stackPixelSize.Width =
_scrollData
._extent.Width;
10399
_scrollData
._maxDesiredSize.Width = Math.Max(
_scrollData
._maxDesiredSize.Width, stackPixelSize.Width);
10400
stackPixelSize.Width =
_scrollData
._maxDesiredSize.Width;
10452
bool viewportSizeChanged = !DoubleUtil.AreClose(viewportSize,
_scrollData
._viewport);
10453
bool extentSizeChanged = !DoubleUtil.AreClose(extentSize,
_scrollData
._extent);
10454
bool computedViewportOffsetChanged = !DoubleUtil.AreClose(computedViewportOffset,
_scrollData
._computedOffset);
10482
viewportOffset =
_scrollData
._offset;
10498
viewportOffset =
_scrollData
._offset;
10511
bool wasViewportOffsetCoerced = !DoubleUtil.AreClose(computedViewportOffset.X,
_scrollData
._offset.X);
10544
!DoubleUtil.AreClose(
_scrollData
._viewport.Width, viewportSize.Width))
10547
viewportOffset.X =
_scrollData
._offset.X;
10552
viewportSize.Width =
_scrollData
._viewport.Width;
10557
if (!remeasure && extentSizeChanged && !DoubleUtil.AreClose(
_scrollData
._extent.Width, extentSize.Width))
10580
viewportOffset.X =
_scrollData
._offset.X;
10594
(
_scrollData
._firstContainerInViewport == null && computedViewportOffsetChanged && !LayoutDoubleUtil.AreClose(computedViewportOffset.X,
_scrollData
._computedOffset.X));
10597
!DoubleUtil.AreClose(
_scrollData
._extent.Width, 0) &&
10602
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.X/extentSize.Width,
_scrollData
._offset.X/
_scrollData
._extent.Width))
10605
viewportOffset.X = (extentSize.Width *
_scrollData
._offset.X) /
_scrollData
._extent.Width;
10611
if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.X)/extentSize.Width, Math.Floor(
_scrollData
._offset.X)/
_scrollData
._extent.Width))
10614
viewportOffset.X = Math.Floor((extentSize.Width * Math.Floor(
_scrollData
._offset.X)) /
_scrollData
._extent.Width);
10642
bool wasViewportOffsetCoerced = !DoubleUtil.AreClose(computedViewportOffset.Y,
_scrollData
._offset.Y);
10675
!DoubleUtil.AreClose(
_scrollData
._viewport.Height, viewportSize.Height))
10678
viewportOffset.Y =
_scrollData
._offset.Y;
10683
viewportSize.Height =
_scrollData
._viewport.Height;
10688
if (!remeasure && extentSizeChanged && !DoubleUtil.AreClose(
_scrollData
._extent.Height, extentSize.Height))
10711
viewportOffset.Y =
_scrollData
._offset.Y;
10725
(
_scrollData
._firstContainerInViewport == null && computedViewportOffsetChanged && !LayoutDoubleUtil.AreClose(computedViewportOffset.Y,
_scrollData
._computedOffset.Y));
10728
!DoubleUtil.AreClose(
_scrollData
._extent.Height, 0) &&
10733
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.Y/extentSize.Height,
_scrollData
._offset.Y/
_scrollData
._extent.Height))
10736
viewportOffset.Y = (extentSize.Height *
_scrollData
._offset.Y) /
_scrollData
._extent.Height;
10742
if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.Y)/extentSize.Height, Math.Floor(
_scrollData
._offset.Y)/
_scrollData
._extent.Height))
10745
viewportOffset.Y = Math.Floor((extentSize.Height * Math.Floor(
_scrollData
._offset.Y)) /
_scrollData
._extent.Height);
10768
viewportSizeChanged = !DoubleUtil.AreClose(viewportSize,
_scrollData
._viewport);
10773
Vector oldViewportOffset =
_scrollData
._computedOffset;
10774
Size oldViewportSize =
_scrollData
._viewport;
10776
_scrollData
._viewport = viewportSize;
10777
_scrollData
._extent = extentSize;
10778
_scrollData
._computedOffset = computedViewportOffset;
10795
_scrollData
._offset = viewportOffset;
11025
viewportOffset =
_scrollData
._computedOffset.X;
11032
viewportOffset =
_scrollData
._computedOffset.Y;
11082
firstChildInView = (int)
_scrollData
._computedOffset.X;
11083
viewportSize = (int)
_scrollData
._viewport.Width;
11087
firstChildInView = (int)
_scrollData
._computedOffset.Y;
11088
viewportSize = (int)
_scrollData
._viewport.Height;
11213
get { return (
_scrollData
!= null) && (
_scrollData
._scrollOwner != null); }
11380
_scrollData
.HorizontalScrollType = ScrollType.None;
11381
_scrollData
.VerticalScrollType = ScrollType.None;
11485
get { return
_scrollData
?._bringIntoViewLeafContainer ?? null; }
11490
get { return
_scrollData
?._firstContainerInViewport ?? null; }
11495
get { return
_scrollData
?._firstContainerOffsetFromViewport ?? 0.0; }
11500
get { return
_scrollData
?._expectedDistanceBetweenViewports ?? 0.0; }
12832
s._scrollData._offset =
_scrollData
._offset;
12833
s._scrollData._extent =
_scrollData
._extent;
12834
s._scrollData._computedOffset =
_scrollData
._computedOffset;
12835
s._scrollData._viewport =
_scrollData
._viewport;