33 references to LayoutDoubleUtil
PresentationFramework (33)
src\Framework\System\Windows\Controls\GridSplitter.cs (1)
909
!
LayoutDoubleUtil
.AreClose(actualLength1 + actualLength2, _resizeData.OriginalDefinition1ActualLength + _resizeData.OriginalDefinition2ActualLength))
src\Framework\System\Windows\Controls\ItemsControl.cs (4)
3090
if (DoubleUtil.LessThan(elementRect.Right, viewportRect.Left) ||
LayoutDoubleUtil
.AreClose(elementRect.Right, viewportRect.Left) ||
3091
DoubleUtil.GreaterThan(elementRect.Left, viewportRect.Right) ||
LayoutDoubleUtil
.AreClose(elementRect.Left, viewportRect.Right) ||
3092
DoubleUtil.LessThan(elementRect.Bottom, viewportRect.Top) ||
LayoutDoubleUtil
.AreClose(elementRect.Bottom, viewportRect.Top) ||
3093
DoubleUtil.GreaterThan(elementRect.Top, viewportRect.Bottom) ||
LayoutDoubleUtil
.AreClose(elementRect.Top, viewportRect.Bottom))
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (26)
895
bool success = (
LayoutDoubleUtil
.AreClose(_scrollData._expectedDistanceBetweenViewports, actualDistanceBetweenViewports));
913
success = (!
LayoutDoubleUtil
.LessThan(diff, 0.0) &&
914
!
LayoutDoubleUtil
.LessThan(topContainerOffset, diff));
1495
if (!
LayoutDoubleUtil
.AreClose(newOffset.X, _scrollData._offset.X) ||
1496
!
LayoutDoubleUtil
.AreClose(newOffset.Y, _scrollData._offset.Y))
2583
LayoutDoubleUtil
.LessThan(spanBeforeViewport, firstItemInViewportOffset + newContainerSpan);
2599
if (!
LayoutDoubleUtil
.AreClose(delta, 0.0))
4454
if (
LayoutDoubleUtil
.AreClose(offset, offsetList[i]))
5501
:
LayoutDoubleUtil
.LessThan(spanBeforeViewport, totalSpan);
5518
:
LayoutDoubleUtil
.LessThan(spanBeforeViewport, totalSpan);
5587
if (container != null && !
LayoutDoubleUtil
.AreClose(oldOffset, newOffset))
6248
if (!
LayoutDoubleUtil
.AreClose(oldSpan, newSpan))
9645
if (!
LayoutDoubleUtil
.AreClose(computedViewportOffset.X, newOffset))
9670
if (!
LayoutDoubleUtil
.AreClose(computedViewportOffset.Y, newOffset))
9931
if (!
LayoutDoubleUtil
.AreClose(computedViewportOffset.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))
9996
if (!
LayoutDoubleUtil
.AreClose(computedViewportOffset.Y/extentSize.Height, _scrollData._offset.Y/_scrollData._extent.Height))
10148
if (!
LayoutDoubleUtil
.AreClose(computedViewportOffset.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))
10212
if (!
LayoutDoubleUtil
.AreClose(computedViewportOffset.X/extentSize.Width, _scrollData._offset.X/_scrollData._extent.Width))
10594
(_scrollData._firstContainerInViewport == null && computedViewportOffsetChanged && !
LayoutDoubleUtil
.AreClose(computedViewportOffset.X, _scrollData._computedOffset.X));
10602
if (!
LayoutDoubleUtil
.AreClose(computedViewportOffset.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))
10725
(_scrollData._firstContainerInViewport == null && computedViewportOffsetChanged && !
LayoutDoubleUtil
.AreClose(computedViewportOffset.Y, _scrollData._computedOffset.Y));
10733
if (!
LayoutDoubleUtil
.AreClose(computedViewportOffset.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))
src\Framework\System\Windows\FrameworkElement.cs (2)
4659
if (
LayoutDoubleUtil
.LessThan(potentialArrangeSize.Width, unclippedDesiredSize.Width)
4660
||
LayoutDoubleUtil
.LessThan(potentialArrangeSize.Height, unclippedDesiredSize.Height))