45 references to LayoutDoubleUtil
PresentationFramework (45)
System\Windows\Controls\GridSplitter.cs (1)
907
!
LayoutDoubleUtil
.AreClose(actualLength1 + actualLength2, _resizeData.OriginalDefinition1ActualLength + _resizeData.OriginalDefinition2ActualLength))
System\Windows\Controls\ItemsControl.cs (6)
3131
if (matrix.OffsetX != 0.0 &&
LayoutDoubleUtil
.AreClose(matrix.OffsetX, 0.0))
3137
if (matrix.OffsetY != 0.0 &&
LayoutDoubleUtil
.AreClose(matrix.OffsetY, 0.0))
3159
if (DoubleUtil.LessThan(elementRect.Right, viewportRect.Left) ||
LayoutDoubleUtil
.AreClose(elementRect.Right, viewportRect.Left) ||
3160
DoubleUtil.GreaterThan(elementRect.Left, viewportRect.Right) ||
LayoutDoubleUtil
.AreClose(elementRect.Left, viewportRect.Right) ||
3161
DoubleUtil.LessThan(elementRect.Bottom, viewportRect.Top) ||
LayoutDoubleUtil
.AreClose(elementRect.Bottom, viewportRect.Top) ||
3162
DoubleUtil.GreaterThan(elementRect.Top, viewportRect.Bottom) ||
LayoutDoubleUtil
.AreClose(elementRect.Top, viewportRect.Bottom))
System\Windows\Controls\VirtualizingStackPanel.cs (36)
898
bool success = (
LayoutDoubleUtil
.AreClose(_scrollData._expectedDistanceBetweenViewports, actualDistanceBetweenViewports));
916
success = (!
LayoutDoubleUtil
.LessThan(diff, 0.0) &&
917
!
LayoutDoubleUtil
.LessThan(topContainerOffset, diff));
945
success =
LayoutDoubleUtil
.LessThan(maxOffset, computedOffset) ||
946
LayoutDoubleUtil
.AreClose(maxOffset, computedOffset);
989
if (
LayoutDoubleUtil
.LessThan(expectedOffset, 0) ||
LayoutDoubleUtil
.LessThan(maxOffset, expectedOffset))
994
if (
LayoutDoubleUtil
.AreClose(actualOffset, 0) ||
LayoutDoubleUtil
.AreClose(actualOffset, maxOffset))
1019
if (
LayoutDoubleUtil
.LessThan(expectedOffset, 0) ||
LayoutDoubleUtil
.LessThan(maxOffset, expectedOffset))
1024
if (
LayoutDoubleUtil
.AreClose(actualOffset, 0) ||
LayoutDoubleUtil
.AreClose(actualOffset, maxOffset))
1544
if (!
LayoutDoubleUtil
.AreClose(newOffset.X, _scrollData._offset.X) ||
1545
!
LayoutDoubleUtil
.AreClose(newOffset.Y, _scrollData._offset.Y))
2635
LayoutDoubleUtil
.LessThan(spanBeforeViewport, firstItemInViewportOffset + newContainerSpan);
2651
if (!
LayoutDoubleUtil
.AreClose(delta, 0.0))
4546
if (
LayoutDoubleUtil
.AreClose(offset, offsetList[i]))
5618
:
LayoutDoubleUtil
.LessThan(spanBeforeViewport, totalSpan);
5635
:
LayoutDoubleUtil
.LessThan(spanBeforeViewport, totalSpan);
5706
if (container != null && !
LayoutDoubleUtil
.AreClose(oldOffset, newOffset))
6386
if (!
LayoutDoubleUtil
.AreClose(oldSpan, newSpan))
9795
if (!
LayoutDoubleUtil
.AreClose(computedViewportOffset.X, newOffset))
9820
if (!
LayoutDoubleUtil
.AreClose(computedViewportOffset.Y, newOffset))
10081
if (!
LayoutDoubleUtil
.AreClose(computedViewportOffset.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))
10146
if (!
LayoutDoubleUtil
.AreClose(computedViewportOffset.Y/extentSize.Height, _scrollData._offset.Y/_scrollData._extent.Height))
10298
if (!
LayoutDoubleUtil
.AreClose(computedViewportOffset.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))
10362
if (!
LayoutDoubleUtil
.AreClose(computedViewportOffset.X/extentSize.Width, _scrollData._offset.X/_scrollData._extent.Width))
10744
(_scrollData._firstContainerInViewport == null && computedViewportOffsetChanged && !
LayoutDoubleUtil
.AreClose(computedViewportOffset.X, _scrollData._computedOffset.X));
10752
if (!
LayoutDoubleUtil
.AreClose(computedViewportOffset.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))
10875
(_scrollData._firstContainerInViewport == null && computedViewportOffsetChanged && !
LayoutDoubleUtil
.AreClose(computedViewportOffset.Y, _scrollData._computedOffset.Y));
10883
if (!
LayoutDoubleUtil
.AreClose(computedViewportOffset.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))
System\Windows\FrameworkElement.cs (2)
4664
if (
LayoutDoubleUtil
.LessThan(potentialArrangeSize.Width, unclippedDesiredSize.Width)
4665
||
LayoutDoubleUtil
.LessThan(potentialArrangeSize.Height, unclippedDesiredSize.Height))