src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (44)
1182? elementRect.Y : elementRect.X;
1258firstContainerOffsetFromViewport = elementRect.Y;
1289if (DoubleUtil.GreaterThanOrClose(elementRect.Y, 0))
1316DoubleUtil.GreaterThanOrClose(elementRect.Y, 0))
1320DoubleUtil.GreaterThan(elementRect.Y, 0)) // this container is non-top
2580double spanBeforeViewport = Math.Max(isHorizontal ? viewport.X : viewport.Y, 0.0);
4450double offset = isHorizontal ? viewport.X : viewport.Y;
4525extendedViewport.Y += viewport.Y - _viewport.Y;
4776pixelSizeBeforeViewport = Math.Max(pixelSizeBeforeViewport, Math.Abs(_viewport.Y - _extendedViewport.Y));
4780logicalSizeBeforeViewport = Math.Max(logicalSizeBeforeViewport, Math.Abs(_viewport.Y - _extendedViewport.Y));
4810if (DoubleUtil.LessThan(extendedViewport.Y, 0.0))
4812extendedViewport.Height = Math.Max(extendedViewport.Height + extendedViewport.Y, 0.0);
4816if (DoubleUtil.GreaterThan(extendedViewport.Y + extendedViewport.Height, _scrollData._extent.Height))
4818extendedViewport.Height = _scrollData._extent.Height - extendedViewport.Y;
4845if (DoubleUtil.LessThan(extendedViewport.Y, 0.0))
4847extendedViewport.Height = Math.Max(extendedViewport.Height / approxSizeOfLogicalUnit + extendedViewport.Y, 0.0) * approxSizeOfLogicalUnit;
4851if (DoubleUtil.GreaterThan(extendedViewport.Y + extendedViewport.Height / approxSizeOfLogicalUnit, _scrollData._extent.Height))
4853extendedViewport.Height = (_scrollData._extent.Height - extendedViewport.Y) * approxSizeOfLogicalUnit;
4889viewport.Y = ScrollContentPresenter.CoerceOffset(viewport.Y, extent.Height, viewport.Height);
4890if (!IsPixelBased && !isHorizontal && DoubleUtil.IsZero(viewport.Height) && DoubleUtil.AreClose(viewport.Y, extent.Height))
4892viewport.Y = ScrollContentPresenter.CoerceOffset(viewport.Y - 1, extent.Height, viewport.Height);
5062if (DoubleUtil.GreaterThan(parentViewport.Y, 0))
5068if (IsPixelBased && DoubleUtil.GreaterThan(pixelSize.Height, parentViewport.Y))
5074sizeAfterStartViewportEdge = pixelSize.Height - parentViewport.Y;
5294if (DoubleUtil.GreaterThan(parentViewport.Y, 0))
5306if (IsPixelBased && DoubleUtil.GreaterThan(0, viewport.Y))
5315cacheBeforeSize = Math.Max(0, cacheBeforeSize - parentViewport.Y);
5320viewport.Height = Math.Max(0, viewport.Height + viewport.Y);
5447double spanBeforeViewport = Math.Max(isHorizontal ? viewport.X : viewport.Y, 0.0);
5563double oldOffset = isHorizontal ? viewport.X : viewport.Y;
6640childViewport.Y = Math.Min(childViewport.Y, 0) -
6655isAfterFirstItem || DoubleUtil.LessThanOrClose(childViewport.Y, 0.0) ?
6666isAfterFirstItem || DoubleUtil.LessThanOrClose(childViewport.Y, 0.0) ?
7090if (DoubleUtil.GreaterThanOrClose(childViewport.Y, childPixelSize.Height) ||
7108if (DoubleUtil.GreaterThanOrClose(childViewport.Y, childLogicalSize.Height) ||
7153double childPixelHeightInViewport = Math.Min(childViewport.Height, childPixelSize.Height - Math.Max(childViewport.Y, 0.0));
7189pixelSizeBeforeViewport = DoubleUtil.LessThan(childViewport.Y, childPixelSize.Height) ? Math.Max(childViewport.Y, 0.0) : childPixelSize.Height;
7207if (DoubleUtil.GreaterThanOrClose(childViewport.Y, childLogicalSize.Height))
11034targetRectOffset = r.Y;
11078double childOffsetWithinViewport = r.Y;