1 write to _scrollData
PresentationFramework (1)
System\Windows\Controls\VirtualizingStackPanel.cs (1)
9567
if (_scrollData == null) {
_scrollData
= new ScrollData(); }
375 references to _scrollData
PresentationFramework (375)
System\Windows\Controls\VirtualizingStackPanel.cs (375)
455
_scrollData
._computedOffset.X = startingOffset;
459
_scrollData
._computedOffset.Y = startingOffset;
489
if (!DoubleUtil.AreClose(scrollX,
_scrollData
._offset.X))
491
Vector oldViewportOffset =
_scrollData
._offset;
494
_scrollData
._offset.X = scrollX;
497
OnViewportOffsetChanged(oldViewportOffset,
_scrollData
._offset);
502
_scrollData
.SetHorizontalScrollType(oldViewportOffset.X, scrollX);
529
_scrollData
._offset.X = Math.Floor(
_scrollData
._offset.X);
530
_scrollData
._computedOffset.X = Math.Floor(
_scrollData
._computedOffset.X);
538
_scrollData
._offset.X = UIElement.RoundLayoutValue(
_scrollData
._offset.X, dpi.DpiScaleX);
539
_scrollData
._computedOffset.X = UIElement.RoundLayoutValue(
_scrollData
._computedOffset.X, dpi.DpiScaleX);
561
_scrollData
._computedOffset.X = startingOffset;
575
_scrollData
._offset.X = ScrollContentPresenter.CoerceOffset(scrollX,
_scrollData
._extent.Width,
_scrollData
._viewport.Width);
576
_scrollData
._computedOffset.X =
_scrollData
._offset.X;
584
_scrollData
._offset,
_scrollData
._extent,
_scrollData
._computedOffset);
617
if (!DoubleUtil.AreClose(scrollY,
_scrollData
._offset.Y))
619
Vector oldViewportOffset =
_scrollData
._offset;
622
_scrollData
._offset.Y = scrollY;
625
OnViewportOffsetChanged(oldViewportOffset,
_scrollData
._offset);
631
_scrollData
.SetVerticalScrollType(oldViewportOffset.Y, scrollY);
657
_scrollData
._offset.Y = Math.Floor(
_scrollData
._offset.Y);
658
_scrollData
._computedOffset.Y = Math.Floor(
_scrollData
._computedOffset.Y);
666
_scrollData
._offset.Y = UIElement.RoundLayoutValue(
_scrollData
._offset.Y, dpi.DpiScaleY);
667
_scrollData
._computedOffset.Y = UIElement.RoundLayoutValue(
_scrollData
._computedOffset.Y, dpi.DpiScaleY);
689
_scrollData
._computedOffset.Y = startingOffset;
703
_scrollData
._offset.Y = ScrollContentPresenter.CoerceOffset(scrollY,
_scrollData
._extent.Height,
_scrollData
._viewport.Height);
704
_scrollData
._computedOffset.Y =
_scrollData
._offset.Y;
718
_scrollData
._offset,
_scrollData
._extent,
_scrollData
._computedOffset);
756
double expectedDistanceBetweenViewports = (isHorizontal ?
_scrollData
._offset.X -
_scrollData
._computedOffset.X :
_scrollData
._offset.Y -
_scrollData
._computedOffset.Y);
764
if (
_scrollData
._firstContainerInViewport != null)
776
_scrollData
._offset.X += expectedDistanceBetweenViewports;
780
_scrollData
._offset.Y += expectedDistanceBetweenViewports;
784
if (
_scrollData
._firstContainerInViewport == null)
786
_scrollData
._firstContainerInViewport = ComputeFirstContainerInViewport(
797
out
_scrollData
._firstContainerOffsetFromViewport);
799
if (
_scrollData
._firstContainerInViewport != null)
801
_scrollData
._expectedDistanceBetweenViewports = expectedDistanceBetweenViewports;
810
_scrollData
._expectedDistanceBetweenViewports += expectedDistanceBetweenViewports;
816
_scrollData
._expectedDistanceBetweenViewports,
817
_scrollData
._firstContainerInViewport,
818
_scrollData
._firstContainerOffsetFromViewport);
835
Debug.Assert(
_scrollData
._firstContainerInViewport != null, "Must have an anchor element");
839
if (itemsControl == null || !VisualTreeHelper.IsAncestorOf(this,
_scrollData
._firstContainerInViewport))
850
_scrollData
._expectedDistanceBetweenViewports,
851
_scrollData
._firstContainerInViewport);
880
FrameworkElement prevFirstContainerInViewport =
_scrollData
._firstContainerInViewport;
881
double prevFirstContainerOffsetFromViewport =
_scrollData
._firstContainerOffsetFromViewport;
882
double prevFirstContainerOffset = FindScrollOffset(
_scrollData
._firstContainerInViewport);
898
bool success = (LayoutDoubleUtil.AreClose(
_scrollData
._expectedDistanceBetweenViewports, actualDistanceBetweenViewports));
915
double diff = actualDistanceBetweenViewports -
_scrollData
._expectedDistanceBetweenViewports;
937
computedOffset =
_scrollData
._computedOffset.X;
938
maxOffset =
_scrollData
._extent.Width -
_scrollData
._viewport.Width;
942
computedOffset =
_scrollData
._computedOffset.Y;
943
maxOffset =
_scrollData
._extent.Height -
_scrollData
._viewport.Height;
955
_scrollData
._computedOffset.X = currFirstContainerOffset - currFirstContainerOffsetFromViewport;
956
_scrollData
._offset.X =
_scrollData
._computedOffset.X;
960
_scrollData
._computedOffset.Y = currFirstContainerOffset - currFirstContainerOffsetFromViewport;
961
_scrollData
._offset.Y =
_scrollData
._computedOffset.Y;
973
_scrollData
._offset);
983
_scrollData
._computedOffset.X = prevFirstContainerOffset - prevFirstContainerOffsetFromViewport;
985
actualOffset =
_scrollData
._computedOffset.X + actualDistanceBetweenViewports;
986
expectedOffset =
_scrollData
._computedOffset.X +
_scrollData
._expectedDistanceBetweenViewports;
987
maxOffset =
_scrollData
._extent.Width -
_scrollData
._viewport.Width;
996
_scrollData
._computedOffset.X = actualOffset;
997
_scrollData
._offset.X = actualOffset;
1002
_scrollData
._offset.X = expectedOffset;
1008
_scrollData
._offset.X = expectedOffset;
1013
_scrollData
._computedOffset.Y = prevFirstContainerOffset - prevFirstContainerOffsetFromViewport;
1015
actualOffset =
_scrollData
._computedOffset.Y + actualDistanceBetweenViewports;
1016
expectedOffset =
_scrollData
._computedOffset.Y +
_scrollData
._expectedDistanceBetweenViewports;
1017
maxOffset =
_scrollData
._extent.Height -
_scrollData
._viewport.Height;
1026
_scrollData
._computedOffset.Y = actualOffset;
1027
_scrollData
._offset.Y = actualOffset;
1032
_scrollData
._offset.Y = expectedOffset;
1038
_scrollData
._offset.Y = expectedOffset;
1045
remeasure, expectedOffset, actualOffset,
_scrollData
._offset,
_scrollData
._computedOffset);
1091
if (
_scrollData
== null)
1094
if (
_scrollData
._firstContainerInViewport != null)
1096
DependencyObject element =
_scrollData
._firstContainerInViewport;
1110
_scrollData
._firstContainerInViewport = null;
1111
_scrollData
._firstContainerOffsetFromViewport = 0;
1112
_scrollData
._expectedDistanceBetweenViewports = 0;
1523
alignTop = (
_scrollData
._bringIntoViewLeafContainer == visual && AlignTopOfBringIntoViewContainer);
1524
alignBottom = (
_scrollData
._bringIntoViewLeafContainer == visual &&
1541
newOffset.X = ScrollContentPresenter.CoerceOffset(newOffset.X,
_scrollData
._extent.Width,
_scrollData
._viewport.Width);
1542
newOffset.Y = ScrollContentPresenter.CoerceOffset(newOffset.Y,
_scrollData
._extent.Height,
_scrollData
._viewport.Height);
1544
if (!LayoutDoubleUtil.AreClose(newOffset.X,
_scrollData
._offset.X) ||
1545
!LayoutDoubleUtil.AreClose(newOffset.Y,
_scrollData
._offset.Y))
1548
if (visual !=
_scrollData
._bringIntoViewLeafContainer)
1550
_scrollData
._bringIntoViewLeafContainer = visual;
1555
Vector oldOffset =
_scrollData
._offset;
1556
_scrollData
._offset = newOffset;
1561
_scrollData
._offset,
1563
_scrollData
._bringIntoViewLeafContainer);
1571
_scrollData
.SetHorizontalScrollType(oldOffset.X, newOffset.X);
1572
_scrollData
.SetVerticalScrollType(oldOffset.Y, newOffset.Y);
1581
_scrollData
._computedOffset = newOffset;
1599
_scrollData
._bringIntoViewLeafContainer = null;
1826
if (
_scrollData
== null) { return false; }
1827
return
_scrollData
._allowHorizontal;
1832
if (
_scrollData
._allowHorizontal != value)
1834
_scrollData
._allowHorizontal = value;
1849
if (
_scrollData
== null) { return false; }
1850
return
_scrollData
._allowVertical;
1855
if (
_scrollData
._allowVertical != value)
1857
_scrollData
._allowVertical = value;
1870
if (
_scrollData
== null) { return 0.0; }
1871
return
_scrollData
._extent.Width;
1882
if (
_scrollData
== null) { return 0.0; }
1883
return
_scrollData
._extent.Height;
1894
if (
_scrollData
== null) { return 0.0; }
1895
return
_scrollData
._viewport.Width;
1906
if (
_scrollData
== null) { return 0.0; }
1907
return
_scrollData
._viewport.Height;
1919
if (
_scrollData
== null) { return 0.0; }
1920
return
_scrollData
._computedOffset.X;
1932
if (
_scrollData
== null) { return 0.0; }
1933
return
_scrollData
._computedOffset.Y;
1946
if (
_scrollData
== null) return null;
1947
return
_scrollData
._scrollOwner;
1952
if (value !=
_scrollData
._scrollOwner)
1955
_scrollData
._scrollOwner = value;
2614
if (IsScrolling &&
_scrollData
._firstContainerInViewport != null && !areContainersUniformlySized)
2655
_scrollData
._offset.X += delta;
2659
_scrollData
._offset.Y += delta;
2670
"newVpOff:",
_scrollData
._offset);
3276
return StackPanel.StackMeasureHelper(this,
_scrollData
, constraint);
3281
return StackPanel.StackArrangeHelper(this,
_scrollData
, arrangeSize);
3566
"ext:", IsScrolling ?
_scrollData
._extent : Size.Empty,
3630
_scrollData
._maxDesiredSize = new Size();
3898
_scrollData
._extent.Width = distance;
3902
_scrollData
._extent.Height = distance;
3907
ScrollTracer.Trace(this, ScrollTraceOp.UpdateExtent, "ext:",
_scrollData
._extent);
4336
offsetX =
_scrollData
._offset.X;
4337
offsetY =
_scrollData
._offset.Y;
4338
extent =
_scrollData
._extent;
4339
viewportSize =
_scrollData
._viewport;
4340
scrollGeneration =
_scrollData
._scrollGeneration;
4344
_scrollData
._maxDesiredSize = new Size();
4369
WasLastMeasurePassAnchored = (
_scrollData
._firstContainerInViewport != null) || (
_scrollData
._bringIntoViewLeafContainer != null);
4673
_scrollData
._bringIntoViewLeafContainer = null;
4681
_scrollData
._offset =
_scrollData
._computedOffset;
4807
if (DoubleUtil.GreaterThan(extendedViewport.X + extendedViewport.Width,
_scrollData
._extent.Width))
4814
extendedViewport.Width = Math.Max(
_scrollData
._extent.Width - extendedViewport.X, 0.0);
4847
if (DoubleUtil.GreaterThan(extendedViewport.X + extendedViewport.Width / approxSizeOfLogicalUnit,
_scrollData
._extent.Width))
4854
extendedViewport.Width = Math.Max(
_scrollData
._extent.Width - extendedViewport.X, 0.0) * approxSizeOfLogicalUnit;
4923
if (DoubleUtil.GreaterThan(extendedViewport.Y + extendedViewport.Height,
_scrollData
._extent.Height))
4930
extendedViewport.Height = Math.Max(
_scrollData
._extent.Height - extendedViewport.Y, 0.0);
4963
if (DoubleUtil.GreaterThan(extendedViewport.Y + extendedViewport.Height / approxSizeOfLogicalUnit,
_scrollData
._extent.Height))
4970
extendedViewport.Height = Math.Max(
_scrollData
._extent.Height - extendedViewport.Y, 0.0) * approxSizeOfLogicalUnit;
4995
if (!
_scrollData
.IsEmpty)
5004
if (!
_scrollData
.IsEmpty)
5754
++
_scrollData
._scrollGeneration;
8437
rcChild.Y = -1.0 *
_scrollData
._computedOffset.Y;
8443
rcChild.X = -1.0 *
_scrollData
._computedOffset.X;
8448
rcChild.X = -1.0 *
_scrollData
._computedOffset.X;
8449
rcChild.Y = -1.0 *
_scrollData
._computedOffset.Y;
9567
if (
_scrollData
== null) { _scrollData = new ScrollData(); }
9577
element.
_scrollData
.ClearLayout();
9619
Vector offsetForScrollViewerRemeasure =
_scrollData
._offset;
9663
stackPixelSize.Height =
_scrollData
._extent.Height;
9670
_scrollData
._maxDesiredSize.Height = Math.Max(
_scrollData
._maxDesiredSize.Height, stackPixelSize.Height);
9671
stackPixelSize.Height =
_scrollData
._maxDesiredSize.Height;
9690
stackPixelSize.Width =
_scrollData
._extent.Width;
9697
_scrollData
._maxDesiredSize.Width = Math.Max(
_scrollData
._maxDesiredSize.Width, stackPixelSize.Width);
9698
stackPixelSize.Width =
_scrollData
._maxDesiredSize.Width;
9754
"o:",
_scrollData
._offset,
9770
isHorizontal ? (!DoubleUtil.AreClose(computedViewportOffset.X,
_scrollData
._offset.X) ||
9771
(IsScrollActive && computedViewportOffset.X > 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.X,
_scrollData
.Extent.Width-
_scrollData
.Viewport.Width)))
9772
: (!DoubleUtil.AreClose(computedViewportOffset.Y,
_scrollData
._offset.Y) ||
9773
(IsScrollActive && computedViewportOffset.Y > 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.Y,
_scrollData
.Extent.Height-
_scrollData
.Viewport.Height)));
9775
isHorizontal ? (!DoubleUtil.AreClose(computedViewportOffset.Y,
_scrollData
._offset.Y) ||
9776
(IsScrollActive && computedViewportOffset.Y > 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.Y,
_scrollData
.Extent.Height-
_scrollData
.Viewport.Height)))
9777
: (!DoubleUtil.AreClose(computedViewportOffset.X,
_scrollData
._offset.X) ||
9778
(IsScrollActive && computedViewportOffset.X > 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.X,
_scrollData
.Extent.Width-
_scrollData
.Viewport.Width)));
9814
_scrollData
.HorizontalScrollType = ScrollType.ToEnd;
9837
_scrollData
.VerticalScrollType = ScrollType.ToEnd;
9874
bool viewportSizeChanged = !DoubleUtil.AreClose(viewportSize,
_scrollData
._viewport);
9875
bool extentSizeChanged = !DoubleUtil.AreClose(extentSize,
_scrollData
._extent);
9876
bool computedViewportOffsetChanged = !DoubleUtil.AreClose(computedViewportOffset,
_scrollData
._computedOffset);
9881
extentWidthChanged = !DoubleUtil.AreClose(extentSize.Width,
_scrollData
._extent.Width);
9882
extentHeightChanged = !DoubleUtil.AreClose(extentSize.Height,
_scrollData
._extent.Height);
10021
!DoubleUtil.AreClose(
_scrollData
._viewport.Width, viewportSize.Width))
10027
"vpSz:",
_scrollData
._viewport.Width, viewportSize.Width,
10028
"newOff:",
_scrollData
._offset);
10037
viewportSize.Width =
_scrollData
._viewport.Width;
10051
if (
_scrollData
.HorizontalScrollType == ScrollType.ToEnd ||
10059
"ext:",
_scrollData
._extent.Width, extentSize.Width,
10065
_scrollData
.HorizontalScrollType = ScrollType.ToEnd;
10074
else if (
_scrollData
.HorizontalScrollType == ScrollType.Absolute)
10076
if (!DoubleUtil.AreClose(
_scrollData
._extent.Width, 0) &&
10081
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.X/extentSize.Width,
_scrollData
._offset.X/
_scrollData
._extent.Width))
10084
viewportOffset.X = (extentSize.Width *
_scrollData
._offset.X) /
_scrollData
._extent.Width;
10090
if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.X)/extentSize.Width, Math.Floor(
_scrollData
._offset.X)/
_scrollData
._extent.Width))
10093
viewportOffset.X = Math.Floor((extentSize.Width * Math.Floor(
_scrollData
._offset.X)) /
_scrollData
._extent.Width);
10101
"expRat:",
_scrollData
._offset.X,
_scrollData
._extent.Width, (
_scrollData
._offset.X/
_scrollData
._extent.Width),
10118
if (
_scrollData
.VerticalScrollType == ScrollType.ToEnd ||
10127
"ext:",
_scrollData
._extent.Height, extentSize.Height,
10133
_scrollData
.VerticalScrollType = ScrollType.ToEnd;
10141
else if (
_scrollData
.VerticalScrollType == ScrollType.Absolute)
10143
if (!DoubleUtil.AreClose(
_scrollData
._extent.Height, 0) &&
10146
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.Y/extentSize.Height,
_scrollData
._offset.Y/
_scrollData
._extent.Height))
10149
viewportOffset.Y = (extentSize.Height *
_scrollData
._offset.Y) /
_scrollData
._extent.Height;
10156
"expRat:",
_scrollData
._offset.Y,
_scrollData
._extent.Height, (
_scrollData
._offset.Y/
_scrollData
._extent.Height),
10238
!DoubleUtil.AreClose(
_scrollData
._viewport.Height, viewportSize.Height))
10244
"vpSz:",
_scrollData
._viewport.Height, viewportSize.Height,
10245
"newOff:",
_scrollData
._offset);
10254
viewportSize.Height =
_scrollData
._viewport.Height;
10268
if (
_scrollData
.VerticalScrollType == ScrollType.ToEnd ||
10276
"ext:",
_scrollData
._extent.Height, extentSize.Height,
10282
_scrollData
.VerticalScrollType = ScrollType.ToEnd;
10291
else if (
_scrollData
.VerticalScrollType == ScrollType.Absolute)
10293
if (!DoubleUtil.AreClose(
_scrollData
._extent.Height, 0) &&
10298
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.Y/extentSize.Height,
_scrollData
._offset.Y/
_scrollData
._extent.Height))
10301
viewportOffset.Y = (extentSize.Height *
_scrollData
._offset.Y) /
_scrollData
._extent.Height;
10307
if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.Y)/extentSize.Height, Math.Floor(
_scrollData
._offset.Y)/
_scrollData
._extent.Height))
10310
viewportOffset.Y = Math.Floor((extentSize.Height * Math.Floor(
_scrollData
._offset.Y)) /
_scrollData
._extent.Height);
10317
"expRat:",
_scrollData
._offset.Y,
_scrollData
._extent.Height, (
_scrollData
._offset.Y/
_scrollData
._extent.Height),
10334
if (
_scrollData
.HorizontalScrollType == ScrollType.ToEnd ||
10343
"ext:",
_scrollData
._extent.Width, extentSize.Width,
10349
_scrollData
.HorizontalScrollType = ScrollType.ToEnd;
10357
else if (
_scrollData
.HorizontalScrollType == ScrollType.Absolute)
10359
if (!DoubleUtil.AreClose(
_scrollData
._extent.Width, 0) &&
10362
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.X/extentSize.Width,
_scrollData
._offset.X/
_scrollData
._extent.Width))
10365
viewportOffset.X = (extentSize.Width *
_scrollData
._offset.X) /
_scrollData
._extent.Width;
10372
"expRat:",
_scrollData
._offset.X,
_scrollData
._extent.Width, (
_scrollData
._offset.X/
_scrollData
._extent.Width),
10388
if (isHorizontal &&
_scrollData
.HorizontalScrollType == ScrollType.ToEnd)
10392
if (!isHorizontal &&
_scrollData
.VerticalScrollType == ScrollType.ToEnd)
10406
viewportSizeChanged = !DoubleUtil.AreClose(viewportSize,
_scrollData
._viewport);
10411
"off:",
_scrollData
._offset, viewportOffset,
10412
"ext:",
_scrollData
._extent, extentSize,
10413
"co:",
_scrollData
._computedOffset, computedViewportOffset,
10414
"vp:",
_scrollData
._viewport, viewportSize);
10420
Vector oldViewportOffset =
_scrollData
._computedOffset;
10421
Size oldViewportSize =
_scrollData
._viewport;
10423
_scrollData
._viewport = viewportSize;
10424
_scrollData
._extent = extentSize;
10425
_scrollData
._computedOffset = computedViewportOffset;
10442
_scrollData
._offset = viewportOffset;
10515
stackPixelSize.Height =
_scrollData
._extent.Height;
10522
_scrollData
._maxDesiredSize.Height = Math.Max(
_scrollData
._maxDesiredSize.Height, stackPixelSize.Height);
10523
stackPixelSize.Height =
_scrollData
._maxDesiredSize.Height;
10542
stackPixelSize.Width =
_scrollData
._extent.Width;
10549
_scrollData
._maxDesiredSize.Width = Math.Max(
_scrollData
._maxDesiredSize.Width, stackPixelSize.Width);
10550
stackPixelSize.Width =
_scrollData
._maxDesiredSize.Width;
10602
bool viewportSizeChanged = !DoubleUtil.AreClose(viewportSize,
_scrollData
._viewport);
10603
bool extentSizeChanged = !DoubleUtil.AreClose(extentSize,
_scrollData
._extent);
10604
bool computedViewportOffsetChanged = !DoubleUtil.AreClose(computedViewportOffset,
_scrollData
._computedOffset);
10632
viewportOffset =
_scrollData
._offset;
10648
viewportOffset =
_scrollData
._offset;
10661
bool wasViewportOffsetCoerced = !DoubleUtil.AreClose(computedViewportOffset.X,
_scrollData
._offset.X);
10694
!DoubleUtil.AreClose(
_scrollData
._viewport.Width, viewportSize.Width))
10697
viewportOffset.X =
_scrollData
._offset.X;
10702
viewportSize.Width =
_scrollData
._viewport.Width;
10707
if (!remeasure && extentSizeChanged && !DoubleUtil.AreClose(
_scrollData
._extent.Width, extentSize.Width))
10730
viewportOffset.X =
_scrollData
._offset.X;
10744
(
_scrollData
._firstContainerInViewport == null && computedViewportOffsetChanged && !LayoutDoubleUtil.AreClose(computedViewportOffset.X,
_scrollData
._computedOffset.X));
10747
!DoubleUtil.AreClose(
_scrollData
._extent.Width, 0) &&
10752
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.X/extentSize.Width,
_scrollData
._offset.X/
_scrollData
._extent.Width))
10755
viewportOffset.X = (extentSize.Width *
_scrollData
._offset.X) /
_scrollData
._extent.Width;
10761
if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.X)/extentSize.Width, Math.Floor(
_scrollData
._offset.X)/
_scrollData
._extent.Width))
10764
viewportOffset.X = Math.Floor((extentSize.Width * Math.Floor(
_scrollData
._offset.X)) /
_scrollData
._extent.Width);
10792
bool wasViewportOffsetCoerced = !DoubleUtil.AreClose(computedViewportOffset.Y,
_scrollData
._offset.Y);
10825
!DoubleUtil.AreClose(
_scrollData
._viewport.Height, viewportSize.Height))
10828
viewportOffset.Y =
_scrollData
._offset.Y;
10833
viewportSize.Height =
_scrollData
._viewport.Height;
10838
if (!remeasure && extentSizeChanged && !DoubleUtil.AreClose(
_scrollData
._extent.Height, extentSize.Height))
10861
viewportOffset.Y =
_scrollData
._offset.Y;
10875
(
_scrollData
._firstContainerInViewport == null && computedViewportOffsetChanged && !LayoutDoubleUtil.AreClose(computedViewportOffset.Y,
_scrollData
._computedOffset.Y));
10878
!DoubleUtil.AreClose(
_scrollData
._extent.Height, 0) &&
10883
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.Y/extentSize.Height,
_scrollData
._offset.Y/
_scrollData
._extent.Height))
10886
viewportOffset.Y = (extentSize.Height *
_scrollData
._offset.Y) /
_scrollData
._extent.Height;
10892
if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.Y)/extentSize.Height, Math.Floor(
_scrollData
._offset.Y)/
_scrollData
._extent.Height))
10895
viewportOffset.Y = Math.Floor((extentSize.Height * Math.Floor(
_scrollData
._offset.Y)) /
_scrollData
._extent.Height);
10918
viewportSizeChanged = !DoubleUtil.AreClose(viewportSize,
_scrollData
._viewport);
10923
Vector oldViewportOffset =
_scrollData
._computedOffset;
10924
Size oldViewportSize =
_scrollData
._viewport;
10926
_scrollData
._viewport = viewportSize;
10927
_scrollData
._extent = extentSize;
10928
_scrollData
._computedOffset = computedViewportOffset;
10945
_scrollData
._offset = viewportOffset;
11172
viewportOffset =
_scrollData
._computedOffset.X;
11179
viewportOffset =
_scrollData
._computedOffset.Y;
11220
firstChildInView = (int)
_scrollData
._computedOffset.X;
11221
viewportSize = (int)
_scrollData
._viewport.Width;
11225
firstChildInView = (int)
_scrollData
._computedOffset.Y;
11226
viewportSize = (int)
_scrollData
._viewport.Height;
11351
get { return (
_scrollData
!= null) && (
_scrollData
._scrollOwner != null); }
11518
_scrollData
.HorizontalScrollType = ScrollType.None;
11519
_scrollData
.VerticalScrollType = ScrollType.None;
11623
get { return
_scrollData
?._bringIntoViewLeafContainer ?? null; }
11628
get { return
_scrollData
?._firstContainerInViewport ?? null; }
11633
get { return
_scrollData
?._firstContainerOffsetFromViewport ?? 0.0; }
11638
get { return
_scrollData
?._expectedDistanceBetweenViewports ?? 0.0; }
12998
s._scrollData._offset =
_scrollData
._offset;
12999
s._scrollData._extent =
_scrollData
._extent;
13000
s._scrollData._computedOffset =
_scrollData
._computedOffset;
13001
s._scrollData._viewport =
_scrollData
._viewport;