1 write to _scrollData
PresentationFramework (1)
System\Windows\Controls\VirtualizingStackPanel.cs (1)
9562
if (_scrollData == null) {
_scrollData
= new ScrollData(); }
375 references to _scrollData
PresentationFramework (375)
System\Windows\Controls\VirtualizingStackPanel.cs (375)
450
_scrollData
._computedOffset.X = startingOffset;
454
_scrollData
._computedOffset.Y = startingOffset;
484
if (!DoubleUtil.AreClose(scrollX,
_scrollData
._offset.X))
486
Vector oldViewportOffset =
_scrollData
._offset;
489
_scrollData
._offset.X = scrollX;
492
OnViewportOffsetChanged(oldViewportOffset,
_scrollData
._offset);
497
_scrollData
.SetHorizontalScrollType(oldViewportOffset.X, scrollX);
524
_scrollData
._offset.X = Math.Floor(
_scrollData
._offset.X);
525
_scrollData
._computedOffset.X = Math.Floor(
_scrollData
._computedOffset.X);
533
_scrollData
._offset.X = UIElement.RoundLayoutValue(
_scrollData
._offset.X, dpi.DpiScaleX);
534
_scrollData
._computedOffset.X = UIElement.RoundLayoutValue(
_scrollData
._computedOffset.X, dpi.DpiScaleX);
556
_scrollData
._computedOffset.X = startingOffset;
570
_scrollData
._offset.X = ScrollContentPresenter.CoerceOffset(scrollX,
_scrollData
._extent.Width,
_scrollData
._viewport.Width);
571
_scrollData
._computedOffset.X =
_scrollData
._offset.X;
579
_scrollData
._offset,
_scrollData
._extent,
_scrollData
._computedOffset);
612
if (!DoubleUtil.AreClose(scrollY,
_scrollData
._offset.Y))
614
Vector oldViewportOffset =
_scrollData
._offset;
617
_scrollData
._offset.Y = scrollY;
620
OnViewportOffsetChanged(oldViewportOffset,
_scrollData
._offset);
626
_scrollData
.SetVerticalScrollType(oldViewportOffset.Y, scrollY);
652
_scrollData
._offset.Y = Math.Floor(
_scrollData
._offset.Y);
653
_scrollData
._computedOffset.Y = Math.Floor(
_scrollData
._computedOffset.Y);
661
_scrollData
._offset.Y = UIElement.RoundLayoutValue(
_scrollData
._offset.Y, dpi.DpiScaleY);
662
_scrollData
._computedOffset.Y = UIElement.RoundLayoutValue(
_scrollData
._computedOffset.Y, dpi.DpiScaleY);
684
_scrollData
._computedOffset.Y = startingOffset;
698
_scrollData
._offset.Y = ScrollContentPresenter.CoerceOffset(scrollY,
_scrollData
._extent.Height,
_scrollData
._viewport.Height);
699
_scrollData
._computedOffset.Y =
_scrollData
._offset.Y;
713
_scrollData
._offset,
_scrollData
._extent,
_scrollData
._computedOffset);
751
double expectedDistanceBetweenViewports = (isHorizontal ?
_scrollData
._offset.X -
_scrollData
._computedOffset.X :
_scrollData
._offset.Y -
_scrollData
._computedOffset.Y);
759
if (
_scrollData
._firstContainerInViewport != null)
771
_scrollData
._offset.X += expectedDistanceBetweenViewports;
775
_scrollData
._offset.Y += expectedDistanceBetweenViewports;
779
if (
_scrollData
._firstContainerInViewport == null)
781
_scrollData
._firstContainerInViewport = ComputeFirstContainerInViewport(
792
out
_scrollData
._firstContainerOffsetFromViewport);
794
if (
_scrollData
._firstContainerInViewport != null)
796
_scrollData
._expectedDistanceBetweenViewports = expectedDistanceBetweenViewports;
805
_scrollData
._expectedDistanceBetweenViewports += expectedDistanceBetweenViewports;
811
_scrollData
._expectedDistanceBetweenViewports,
812
_scrollData
._firstContainerInViewport,
813
_scrollData
._firstContainerOffsetFromViewport);
830
Debug.Assert(
_scrollData
._firstContainerInViewport != null, "Must have an anchor element");
834
if (itemsControl == null || !VisualTreeHelper.IsAncestorOf(this,
_scrollData
._firstContainerInViewport))
845
_scrollData
._expectedDistanceBetweenViewports,
846
_scrollData
._firstContainerInViewport);
875
FrameworkElement prevFirstContainerInViewport =
_scrollData
._firstContainerInViewport;
876
double prevFirstContainerOffsetFromViewport =
_scrollData
._firstContainerOffsetFromViewport;
877
double prevFirstContainerOffset = FindScrollOffset(
_scrollData
._firstContainerInViewport);
893
bool success = (LayoutDoubleUtil.AreClose(
_scrollData
._expectedDistanceBetweenViewports, actualDistanceBetweenViewports));
910
double diff = actualDistanceBetweenViewports -
_scrollData
._expectedDistanceBetweenViewports;
932
computedOffset =
_scrollData
._computedOffset.X;
933
maxOffset =
_scrollData
._extent.Width -
_scrollData
._viewport.Width;
937
computedOffset =
_scrollData
._computedOffset.Y;
938
maxOffset =
_scrollData
._extent.Height -
_scrollData
._viewport.Height;
950
_scrollData
._computedOffset.X = currFirstContainerOffset - currFirstContainerOffsetFromViewport;
951
_scrollData
._offset.X =
_scrollData
._computedOffset.X;
955
_scrollData
._computedOffset.Y = currFirstContainerOffset - currFirstContainerOffsetFromViewport;
956
_scrollData
._offset.Y =
_scrollData
._computedOffset.Y;
968
_scrollData
._offset);
978
_scrollData
._computedOffset.X = prevFirstContainerOffset - prevFirstContainerOffsetFromViewport;
980
actualOffset =
_scrollData
._computedOffset.X + actualDistanceBetweenViewports;
981
expectedOffset =
_scrollData
._computedOffset.X +
_scrollData
._expectedDistanceBetweenViewports;
982
maxOffset =
_scrollData
._extent.Width -
_scrollData
._viewport.Width;
991
_scrollData
._computedOffset.X = actualOffset;
992
_scrollData
._offset.X = actualOffset;
997
_scrollData
._offset.X = expectedOffset;
1003
_scrollData
._offset.X = expectedOffset;
1008
_scrollData
._computedOffset.Y = prevFirstContainerOffset - prevFirstContainerOffsetFromViewport;
1010
actualOffset =
_scrollData
._computedOffset.Y + actualDistanceBetweenViewports;
1011
expectedOffset =
_scrollData
._computedOffset.Y +
_scrollData
._expectedDistanceBetweenViewports;
1012
maxOffset =
_scrollData
._extent.Height -
_scrollData
._viewport.Height;
1021
_scrollData
._computedOffset.Y = actualOffset;
1022
_scrollData
._offset.Y = actualOffset;
1027
_scrollData
._offset.Y = expectedOffset;
1033
_scrollData
._offset.Y = expectedOffset;
1040
remeasure, expectedOffset, actualOffset,
_scrollData
._offset,
_scrollData
._computedOffset);
1086
if (
_scrollData
== null)
1089
if (
_scrollData
._firstContainerInViewport != null)
1091
DependencyObject element =
_scrollData
._firstContainerInViewport;
1105
_scrollData
._firstContainerInViewport = null;
1106
_scrollData
._firstContainerOffsetFromViewport = 0;
1107
_scrollData
._expectedDistanceBetweenViewports = 0;
1518
alignTop = (
_scrollData
._bringIntoViewLeafContainer == visual && AlignTopOfBringIntoViewContainer);
1519
alignBottom = (
_scrollData
._bringIntoViewLeafContainer == visual &&
1536
newOffset.X = ScrollContentPresenter.CoerceOffset(newOffset.X,
_scrollData
._extent.Width,
_scrollData
._viewport.Width);
1537
newOffset.Y = ScrollContentPresenter.CoerceOffset(newOffset.Y,
_scrollData
._extent.Height,
_scrollData
._viewport.Height);
1539
if (!LayoutDoubleUtil.AreClose(newOffset.X,
_scrollData
._offset.X) ||
1540
!LayoutDoubleUtil.AreClose(newOffset.Y,
_scrollData
._offset.Y))
1543
if (visual !=
_scrollData
._bringIntoViewLeafContainer)
1545
_scrollData
._bringIntoViewLeafContainer = visual;
1550
Vector oldOffset =
_scrollData
._offset;
1551
_scrollData
._offset = newOffset;
1556
_scrollData
._offset,
1558
_scrollData
._bringIntoViewLeafContainer);
1566
_scrollData
.SetHorizontalScrollType(oldOffset.X, newOffset.X);
1567
_scrollData
.SetVerticalScrollType(oldOffset.Y, newOffset.Y);
1576
_scrollData
._computedOffset = newOffset;
1594
_scrollData
._bringIntoViewLeafContainer = null;
1821
if (
_scrollData
== null) { return false; }
1822
return
_scrollData
._allowHorizontal;
1827
if (
_scrollData
._allowHorizontal != value)
1829
_scrollData
._allowHorizontal = value;
1844
if (
_scrollData
== null) { return false; }
1845
return
_scrollData
._allowVertical;
1850
if (
_scrollData
._allowVertical != value)
1852
_scrollData
._allowVertical = value;
1865
if (
_scrollData
== null) { return 0.0; }
1866
return
_scrollData
._extent.Width;
1877
if (
_scrollData
== null) { return 0.0; }
1878
return
_scrollData
._extent.Height;
1889
if (
_scrollData
== null) { return 0.0; }
1890
return
_scrollData
._viewport.Width;
1901
if (
_scrollData
== null) { return 0.0; }
1902
return
_scrollData
._viewport.Height;
1914
if (
_scrollData
== null) { return 0.0; }
1915
return
_scrollData
._computedOffset.X;
1927
if (
_scrollData
== null) { return 0.0; }
1928
return
_scrollData
._computedOffset.Y;
1941
if (
_scrollData
== null) return null;
1942
return
_scrollData
._scrollOwner;
1947
if (value !=
_scrollData
._scrollOwner)
1950
_scrollData
._scrollOwner = value;
2609
if (IsScrolling &&
_scrollData
._firstContainerInViewport != null && !areContainersUniformlySized)
2650
_scrollData
._offset.X += delta;
2654
_scrollData
._offset.Y += delta;
2665
"newVpOff:",
_scrollData
._offset);
3271
return StackPanel.StackMeasureHelper(this,
_scrollData
, constraint);
3276
return StackPanel.StackArrangeHelper(this,
_scrollData
, arrangeSize);
3561
"ext:", IsScrolling ?
_scrollData
._extent : Size.Empty,
3625
_scrollData
._maxDesiredSize = new Size();
3893
_scrollData
._extent.Width = distance;
3897
_scrollData
._extent.Height = distance;
3902
ScrollTracer.Trace(this, ScrollTraceOp.UpdateExtent, "ext:",
_scrollData
._extent);
4331
offsetX =
_scrollData
._offset.X;
4332
offsetY =
_scrollData
._offset.Y;
4333
extent =
_scrollData
._extent;
4334
viewportSize =
_scrollData
._viewport;
4335
scrollGeneration =
_scrollData
._scrollGeneration;
4339
_scrollData
._maxDesiredSize = new Size();
4364
WasLastMeasurePassAnchored = (
_scrollData
._firstContainerInViewport != null) || (
_scrollData
._bringIntoViewLeafContainer != null);
4668
_scrollData
._bringIntoViewLeafContainer = null;
4676
_scrollData
._offset =
_scrollData
._computedOffset;
4802
if (DoubleUtil.GreaterThan(extendedViewport.X + extendedViewport.Width,
_scrollData
._extent.Width))
4809
extendedViewport.Width = Math.Max(
_scrollData
._extent.Width - extendedViewport.X, 0.0);
4842
if (DoubleUtil.GreaterThan(extendedViewport.X + extendedViewport.Width / approxSizeOfLogicalUnit,
_scrollData
._extent.Width))
4849
extendedViewport.Width = Math.Max(
_scrollData
._extent.Width - extendedViewport.X, 0.0) * approxSizeOfLogicalUnit;
4918
if (DoubleUtil.GreaterThan(extendedViewport.Y + extendedViewport.Height,
_scrollData
._extent.Height))
4925
extendedViewport.Height = Math.Max(
_scrollData
._extent.Height - extendedViewport.Y, 0.0);
4958
if (DoubleUtil.GreaterThan(extendedViewport.Y + extendedViewport.Height / approxSizeOfLogicalUnit,
_scrollData
._extent.Height))
4965
extendedViewport.Height = Math.Max(
_scrollData
._extent.Height - extendedViewport.Y, 0.0) * approxSizeOfLogicalUnit;
4990
if (!
_scrollData
.IsEmpty)
4999
if (!
_scrollData
.IsEmpty)
5749
++
_scrollData
._scrollGeneration;
8432
rcChild.Y = -1.0 *
_scrollData
._computedOffset.Y;
8438
rcChild.X = -1.0 *
_scrollData
._computedOffset.X;
8443
rcChild.X = -1.0 *
_scrollData
._computedOffset.X;
8444
rcChild.Y = -1.0 *
_scrollData
._computedOffset.Y;
9562
if (
_scrollData
== null) { _scrollData = new ScrollData(); }
9572
element.
_scrollData
.ClearLayout();
9614
Vector offsetForScrollViewerRemeasure =
_scrollData
._offset;
9658
stackPixelSize.Height =
_scrollData
._extent.Height;
9665
_scrollData
._maxDesiredSize.Height = Math.Max(
_scrollData
._maxDesiredSize.Height, stackPixelSize.Height);
9666
stackPixelSize.Height =
_scrollData
._maxDesiredSize.Height;
9685
stackPixelSize.Width =
_scrollData
._extent.Width;
9692
_scrollData
._maxDesiredSize.Width = Math.Max(
_scrollData
._maxDesiredSize.Width, stackPixelSize.Width);
9693
stackPixelSize.Width =
_scrollData
._maxDesiredSize.Width;
9749
"o:",
_scrollData
._offset,
9765
isHorizontal ? (!DoubleUtil.AreClose(computedViewportOffset.X,
_scrollData
._offset.X) ||
9766
(IsScrollActive && computedViewportOffset.X > 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.X,
_scrollData
.Extent.Width-
_scrollData
.Viewport.Width)))
9767
: (!DoubleUtil.AreClose(computedViewportOffset.Y,
_scrollData
._offset.Y) ||
9768
(IsScrollActive && computedViewportOffset.Y > 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.Y,
_scrollData
.Extent.Height-
_scrollData
.Viewport.Height)));
9770
isHorizontal ? (!DoubleUtil.AreClose(computedViewportOffset.Y,
_scrollData
._offset.Y) ||
9771
(IsScrollActive && computedViewportOffset.Y > 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.Y,
_scrollData
.Extent.Height-
_scrollData
.Viewport.Height)))
9772
: (!DoubleUtil.AreClose(computedViewportOffset.X,
_scrollData
._offset.X) ||
9773
(IsScrollActive && computedViewportOffset.X > 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.X,
_scrollData
.Extent.Width-
_scrollData
.Viewport.Width)));
9809
_scrollData
.HorizontalScrollType = ScrollType.ToEnd;
9832
_scrollData
.VerticalScrollType = ScrollType.ToEnd;
9869
bool viewportSizeChanged = !DoubleUtil.AreClose(viewportSize,
_scrollData
._viewport);
9870
bool extentSizeChanged = !DoubleUtil.AreClose(extentSize,
_scrollData
._extent);
9871
bool computedViewportOffsetChanged = !DoubleUtil.AreClose(computedViewportOffset,
_scrollData
._computedOffset);
9876
extentWidthChanged = !DoubleUtil.AreClose(extentSize.Width,
_scrollData
._extent.Width);
9877
extentHeightChanged = !DoubleUtil.AreClose(extentSize.Height,
_scrollData
._extent.Height);
10016
!DoubleUtil.AreClose(
_scrollData
._viewport.Width, viewportSize.Width))
10022
"vpSz:",
_scrollData
._viewport.Width, viewportSize.Width,
10023
"newOff:",
_scrollData
._offset);
10032
viewportSize.Width =
_scrollData
._viewport.Width;
10046
if (
_scrollData
.HorizontalScrollType == ScrollType.ToEnd ||
10054
"ext:",
_scrollData
._extent.Width, extentSize.Width,
10060
_scrollData
.HorizontalScrollType = ScrollType.ToEnd;
10069
else if (
_scrollData
.HorizontalScrollType == ScrollType.Absolute)
10071
if (!DoubleUtil.AreClose(
_scrollData
._extent.Width, 0) &&
10076
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.X/extentSize.Width,
_scrollData
._offset.X/
_scrollData
._extent.Width))
10079
viewportOffset.X = (extentSize.Width *
_scrollData
._offset.X) /
_scrollData
._extent.Width;
10085
if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.X)/extentSize.Width, Math.Floor(
_scrollData
._offset.X)/
_scrollData
._extent.Width))
10088
viewportOffset.X = Math.Floor((extentSize.Width * Math.Floor(
_scrollData
._offset.X)) /
_scrollData
._extent.Width);
10096
"expRat:",
_scrollData
._offset.X,
_scrollData
._extent.Width, (
_scrollData
._offset.X/
_scrollData
._extent.Width),
10113
if (
_scrollData
.VerticalScrollType == ScrollType.ToEnd ||
10122
"ext:",
_scrollData
._extent.Height, extentSize.Height,
10128
_scrollData
.VerticalScrollType = ScrollType.ToEnd;
10136
else if (
_scrollData
.VerticalScrollType == ScrollType.Absolute)
10138
if (!DoubleUtil.AreClose(
_scrollData
._extent.Height, 0) &&
10141
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.Y/extentSize.Height,
_scrollData
._offset.Y/
_scrollData
._extent.Height))
10144
viewportOffset.Y = (extentSize.Height *
_scrollData
._offset.Y) /
_scrollData
._extent.Height;
10151
"expRat:",
_scrollData
._offset.Y,
_scrollData
._extent.Height, (
_scrollData
._offset.Y/
_scrollData
._extent.Height),
10233
!DoubleUtil.AreClose(
_scrollData
._viewport.Height, viewportSize.Height))
10239
"vpSz:",
_scrollData
._viewport.Height, viewportSize.Height,
10240
"newOff:",
_scrollData
._offset);
10249
viewportSize.Height =
_scrollData
._viewport.Height;
10263
if (
_scrollData
.VerticalScrollType == ScrollType.ToEnd ||
10271
"ext:",
_scrollData
._extent.Height, extentSize.Height,
10277
_scrollData
.VerticalScrollType = ScrollType.ToEnd;
10286
else if (
_scrollData
.VerticalScrollType == ScrollType.Absolute)
10288
if (!DoubleUtil.AreClose(
_scrollData
._extent.Height, 0) &&
10293
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.Y/extentSize.Height,
_scrollData
._offset.Y/
_scrollData
._extent.Height))
10296
viewportOffset.Y = (extentSize.Height *
_scrollData
._offset.Y) /
_scrollData
._extent.Height;
10302
if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.Y)/extentSize.Height, Math.Floor(
_scrollData
._offset.Y)/
_scrollData
._extent.Height))
10305
viewportOffset.Y = Math.Floor((extentSize.Height * Math.Floor(
_scrollData
._offset.Y)) /
_scrollData
._extent.Height);
10312
"expRat:",
_scrollData
._offset.Y,
_scrollData
._extent.Height, (
_scrollData
._offset.Y/
_scrollData
._extent.Height),
10329
if (
_scrollData
.HorizontalScrollType == ScrollType.ToEnd ||
10338
"ext:",
_scrollData
._extent.Width, extentSize.Width,
10344
_scrollData
.HorizontalScrollType = ScrollType.ToEnd;
10352
else if (
_scrollData
.HorizontalScrollType == ScrollType.Absolute)
10354
if (!DoubleUtil.AreClose(
_scrollData
._extent.Width, 0) &&
10357
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.X/extentSize.Width,
_scrollData
._offset.X/
_scrollData
._extent.Width))
10360
viewportOffset.X = (extentSize.Width *
_scrollData
._offset.X) /
_scrollData
._extent.Width;
10367
"expRat:",
_scrollData
._offset.X,
_scrollData
._extent.Width, (
_scrollData
._offset.X/
_scrollData
._extent.Width),
10383
if (isHorizontal &&
_scrollData
.HorizontalScrollType == ScrollType.ToEnd)
10387
if (!isHorizontal &&
_scrollData
.VerticalScrollType == ScrollType.ToEnd)
10401
viewportSizeChanged = !DoubleUtil.AreClose(viewportSize,
_scrollData
._viewport);
10406
"off:",
_scrollData
._offset, viewportOffset,
10407
"ext:",
_scrollData
._extent, extentSize,
10408
"co:",
_scrollData
._computedOffset, computedViewportOffset,
10409
"vp:",
_scrollData
._viewport, viewportSize);
10415
Vector oldViewportOffset =
_scrollData
._computedOffset;
10416
Size oldViewportSize =
_scrollData
._viewport;
10418
_scrollData
._viewport = viewportSize;
10419
_scrollData
._extent = extentSize;
10420
_scrollData
._computedOffset = computedViewportOffset;
10437
_scrollData
._offset = viewportOffset;
10510
stackPixelSize.Height =
_scrollData
._extent.Height;
10517
_scrollData
._maxDesiredSize.Height = Math.Max(
_scrollData
._maxDesiredSize.Height, stackPixelSize.Height);
10518
stackPixelSize.Height =
_scrollData
._maxDesiredSize.Height;
10537
stackPixelSize.Width =
_scrollData
._extent.Width;
10544
_scrollData
._maxDesiredSize.Width = Math.Max(
_scrollData
._maxDesiredSize.Width, stackPixelSize.Width);
10545
stackPixelSize.Width =
_scrollData
._maxDesiredSize.Width;
10597
bool viewportSizeChanged = !DoubleUtil.AreClose(viewportSize,
_scrollData
._viewport);
10598
bool extentSizeChanged = !DoubleUtil.AreClose(extentSize,
_scrollData
._extent);
10599
bool computedViewportOffsetChanged = !DoubleUtil.AreClose(computedViewportOffset,
_scrollData
._computedOffset);
10627
viewportOffset =
_scrollData
._offset;
10643
viewportOffset =
_scrollData
._offset;
10656
bool wasViewportOffsetCoerced = !DoubleUtil.AreClose(computedViewportOffset.X,
_scrollData
._offset.X);
10689
!DoubleUtil.AreClose(
_scrollData
._viewport.Width, viewportSize.Width))
10692
viewportOffset.X =
_scrollData
._offset.X;
10697
viewportSize.Width =
_scrollData
._viewport.Width;
10702
if (!remeasure && extentSizeChanged && !DoubleUtil.AreClose(
_scrollData
._extent.Width, extentSize.Width))
10725
viewportOffset.X =
_scrollData
._offset.X;
10739
(
_scrollData
._firstContainerInViewport == null && computedViewportOffsetChanged && !LayoutDoubleUtil.AreClose(computedViewportOffset.X,
_scrollData
._computedOffset.X));
10742
!DoubleUtil.AreClose(
_scrollData
._extent.Width, 0) &&
10747
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.X/extentSize.Width,
_scrollData
._offset.X/
_scrollData
._extent.Width))
10750
viewportOffset.X = (extentSize.Width *
_scrollData
._offset.X) /
_scrollData
._extent.Width;
10756
if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.X)/extentSize.Width, Math.Floor(
_scrollData
._offset.X)/
_scrollData
._extent.Width))
10759
viewportOffset.X = Math.Floor((extentSize.Width * Math.Floor(
_scrollData
._offset.X)) /
_scrollData
._extent.Width);
10787
bool wasViewportOffsetCoerced = !DoubleUtil.AreClose(computedViewportOffset.Y,
_scrollData
._offset.Y);
10820
!DoubleUtil.AreClose(
_scrollData
._viewport.Height, viewportSize.Height))
10823
viewportOffset.Y =
_scrollData
._offset.Y;
10828
viewportSize.Height =
_scrollData
._viewport.Height;
10833
if (!remeasure && extentSizeChanged && !DoubleUtil.AreClose(
_scrollData
._extent.Height, extentSize.Height))
10856
viewportOffset.Y =
_scrollData
._offset.Y;
10870
(
_scrollData
._firstContainerInViewport == null && computedViewportOffsetChanged && !LayoutDoubleUtil.AreClose(computedViewportOffset.Y,
_scrollData
._computedOffset.Y));
10873
!DoubleUtil.AreClose(
_scrollData
._extent.Height, 0) &&
10878
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.Y/extentSize.Height,
_scrollData
._offset.Y/
_scrollData
._extent.Height))
10881
viewportOffset.Y = (extentSize.Height *
_scrollData
._offset.Y) /
_scrollData
._extent.Height;
10887
if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.Y)/extentSize.Height, Math.Floor(
_scrollData
._offset.Y)/
_scrollData
._extent.Height))
10890
viewportOffset.Y = Math.Floor((extentSize.Height * Math.Floor(
_scrollData
._offset.Y)) /
_scrollData
._extent.Height);
10913
viewportSizeChanged = !DoubleUtil.AreClose(viewportSize,
_scrollData
._viewport);
10918
Vector oldViewportOffset =
_scrollData
._computedOffset;
10919
Size oldViewportSize =
_scrollData
._viewport;
10921
_scrollData
._viewport = viewportSize;
10922
_scrollData
._extent = extentSize;
10923
_scrollData
._computedOffset = computedViewportOffset;
10940
_scrollData
._offset = viewportOffset;
11167
viewportOffset =
_scrollData
._computedOffset.X;
11174
viewportOffset =
_scrollData
._computedOffset.Y;
11215
firstChildInView = (int)
_scrollData
._computedOffset.X;
11216
viewportSize = (int)
_scrollData
._viewport.Width;
11220
firstChildInView = (int)
_scrollData
._computedOffset.Y;
11221
viewportSize = (int)
_scrollData
._viewport.Height;
11346
get { return (
_scrollData
!= null) && (
_scrollData
._scrollOwner != null); }
11513
_scrollData
.HorizontalScrollType = ScrollType.None;
11514
_scrollData
.VerticalScrollType = ScrollType.None;
11618
get { return
_scrollData
?._bringIntoViewLeafContainer ?? null; }
11623
get { return
_scrollData
?._firstContainerInViewport ?? null; }
11628
get { return
_scrollData
?._firstContainerOffsetFromViewport ?? 0.0; }
11633
get { return
_scrollData
?._expectedDistanceBetweenViewports ?? 0.0; }
12993
s._scrollData._offset =
_scrollData
._offset;
12994
s._scrollData._extent =
_scrollData
._extent;
12995
s._scrollData._computedOffset =
_scrollData
._computedOffset;
12996
s._scrollData._viewport =
_scrollData
._viewport;