src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (44)
2286double factor = Math.Min(1.0, isHorizontal ? viewport.Width / extendedViewport.Width : viewport.Height / extendedViewport.Height);
2970if (double.IsInfinity(viewport.Width))
3929return ((isHorizontal && DoubleUtil.GreaterThanOrClose(currentExtendedViewport.Width, estimatedExtendedViewport.Width)) ||
4596double factor = isHorizontal ? viewport.Width : viewport.Height;
4706extendedViewport.Width = Math.Max(extendedViewport.Width + extendedViewport.X, 0.0);
4710if (DoubleUtil.GreaterThan(extendedViewport.X + extendedViewport.Width, _scrollData._extent.Width))
4741extendedViewport.Width = Math.Max(extendedViewport.Width / approxSizeOfLogicalUnit + extendedViewport.X, 0.0) * approxSizeOfLogicalUnit;
4745if (DoubleUtil.GreaterThan(extendedViewport.X + extendedViewport.Width / approxSizeOfLogicalUnit, _scrollData._extent.Width))
4865double factor = Math.Max(1.0, isHorizontal ? extendedViewport.Width / viewport.Width : extendedViewport.Height / viewport.Height);
4880viewport.X = ScrollContentPresenter.CoerceOffset(viewport.X, extent.Width, viewport.Width);
4881if (!IsPixelBased && isHorizontal && DoubleUtil.IsZero(viewport.Width) && DoubleUtil.AreClose(viewport.X, extent.Width))
4883viewport.X = ScrollContentPresenter.CoerceOffset(viewport.X - 1, extent.Width, viewport.Width);
4978viewport.Width = Math.Max(viewport.Width - sizeAfterStartViewportEdge, 0);
5005if (DoubleUtil.GreaterThan(parentViewport.Width, 0))
5007if (DoubleUtil.GreaterThanOrClose(parentViewport.Width, pixelSize.Width))
5013viewport.Width = Math.Max(0, parentViewport.Width - pixelSize.Width);
5021sizeBeforeEndViewportEdge = parentViewport.Width;
5195if (DoubleUtil.GreaterThan(viewport.Width, 0))
5217viewport.Width = Math.Max(0, viewport.Width + viewport.X);
5246else if (DoubleUtil.GreaterThan(viewport.Width, 0))
5251if (DoubleUtil.GreaterThanOrClose(viewport.Width, inset.Left))
5256viewport.Width = Math.Max(0, viewport.Width - inset.Left);
5267cacheAfterSize = Math.Max(0, cacheAfterSize - (inset.Left - viewport.Width));
6528return DoubleUtil.GreaterThanOrClose(stackPixelSizeInViewport.Width, viewport.Width);
6540return DoubleUtil.AreClose(viewport.Width, 0.0);
6598childViewport.Width = Math.Max(childViewport.Width - stackPixelSizeInViewport.Width, 0.0);
6603childViewport.Width = Math.Max(childViewport.Width - stackPixelSizeInViewport.Width, 0.0);
7006adjustedChildViewport.Width = Math.Max(0, adjustedChildViewport.Width - childPixelSizeInViewport.Width);
7098pixelSizeInViewport = Math.Min(childViewport.Width, childPixelSize.Width - pixelSizeBeforeViewport);
7125if (DoubleUtil.GreaterThan(childViewport.Width, 0.0))
7183DoubleUtil.AreClose(childViewport.Width, 0.0))
7201DoubleUtil.AreClose(childViewport.Width, 0.0))
7245double childPixelWidthInViewport = Math.Min(childViewport.Width, childPixelSize.Width - Math.Max(childViewport.X, 0.0));
9499viewportSize.Width = viewport.Width;
9847double proposedViewportSize = Math.Floor(viewport.Width / approxSizeOfLogicalUnit);
9854"pxSz:", stackPixelSizeInViewport.Width, viewport.Width,
10351viewportSize.Width = viewport.Width;
10529double proposedViewportSize = Math.Floor(viewport.Width / approxSizeOfLogicalUnit);
11028targetRectSize = r.Width;
11113newRect.Width = r.Width;
12786writer.Write(rect.Width);