34 references to AreClose
PresentationFramework (34)
System\Windows\Controls\GridSplitter.cs (1)
907
!LayoutDoubleUtil.
AreClose
(actualLength1 + actualLength2, _resizeData.OriginalDefinition1ActualLength + _resizeData.OriginalDefinition2ActualLength))
System\Windows\Controls\ItemsControl.cs (6)
3122
if (matrix.OffsetX != 0.0 && LayoutDoubleUtil.
AreClose
(matrix.OffsetX, 0.0))
3128
if (matrix.OffsetY != 0.0 && LayoutDoubleUtil.
AreClose
(matrix.OffsetY, 0.0))
3150
if (DoubleUtil.LessThan(elementRect.Right, viewportRect.Left) || LayoutDoubleUtil.
AreClose
(elementRect.Right, viewportRect.Left) ||
3151
DoubleUtil.GreaterThan(elementRect.Left, viewportRect.Right) || LayoutDoubleUtil.
AreClose
(elementRect.Left, viewportRect.Right) ||
3152
DoubleUtil.LessThan(elementRect.Bottom, viewportRect.Top) || LayoutDoubleUtil.
AreClose
(elementRect.Bottom, viewportRect.Top) ||
3153
DoubleUtil.GreaterThan(elementRect.Top, viewportRect.Bottom) || LayoutDoubleUtil.
AreClose
(elementRect.Top, viewportRect.Bottom))
System\Windows\Controls\VirtualizingStackPanel.cs (26)
893
bool success = (LayoutDoubleUtil.
AreClose
(_scrollData._expectedDistanceBetweenViewports, actualDistanceBetweenViewports));
941
LayoutDoubleUtil.
AreClose
(maxOffset, computedOffset);
989
if (LayoutDoubleUtil.
AreClose
(actualOffset, 0) || LayoutDoubleUtil.
AreClose
(actualOffset, maxOffset))
1019
if (LayoutDoubleUtil.
AreClose
(actualOffset, 0) || LayoutDoubleUtil.
AreClose
(actualOffset, maxOffset))
1535
if (!LayoutDoubleUtil.
AreClose
(newOffset.X, _scrollData._offset.X) ||
1536
!LayoutDoubleUtil.
AreClose
(newOffset.Y, _scrollData._offset.Y))
2644
if (!LayoutDoubleUtil.
AreClose
(delta, 0.0))
4539
if (LayoutDoubleUtil.
AreClose
(offset, offsetList[i]))
5699
if (container != null && !LayoutDoubleUtil.
AreClose
(oldOffset, newOffset))
6379
if (!LayoutDoubleUtil.
AreClose
(oldSpan, newSpan))
9792
if (!LayoutDoubleUtil.
AreClose
(computedViewportOffset.X, newOffset))
9817
if (!LayoutDoubleUtil.
AreClose
(computedViewportOffset.Y, newOffset))
10078
if (!LayoutDoubleUtil.
AreClose
(computedViewportOffset.X/extentSize.Width, _scrollData._offset.X/_scrollData._extent.Width))
10087
if (!LayoutDoubleUtil.
AreClose
(Math.Floor(computedViewportOffset.X)/extentSize.Width, Math.Floor(_scrollData._offset.X)/_scrollData._extent.Width))
10143
if (!LayoutDoubleUtil.
AreClose
(computedViewportOffset.Y/extentSize.Height, _scrollData._offset.Y/_scrollData._extent.Height))
10295
if (!LayoutDoubleUtil.
AreClose
(computedViewportOffset.Y/extentSize.Height, _scrollData._offset.Y/_scrollData._extent.Height))
10304
if (!LayoutDoubleUtil.
AreClose
(Math.Floor(computedViewportOffset.Y)/extentSize.Height, Math.Floor(_scrollData._offset.Y)/_scrollData._extent.Height))
10359
if (!LayoutDoubleUtil.
AreClose
(computedViewportOffset.X/extentSize.Width, _scrollData._offset.X/_scrollData._extent.Width))
10741
(_scrollData._firstContainerInViewport == null && computedViewportOffsetChanged && !LayoutDoubleUtil.
AreClose
(computedViewportOffset.X, _scrollData._computedOffset.X));
10749
if (!LayoutDoubleUtil.
AreClose
(computedViewportOffset.X/extentSize.Width, _scrollData._offset.X/_scrollData._extent.Width))
10758
if (!LayoutDoubleUtil.
AreClose
(Math.Floor(computedViewportOffset.X)/extentSize.Width, Math.Floor(_scrollData._offset.X)/_scrollData._extent.Width))
10872
(_scrollData._firstContainerInViewport == null && computedViewportOffsetChanged && !LayoutDoubleUtil.
AreClose
(computedViewportOffset.Y, _scrollData._computedOffset.Y));
10880
if (!LayoutDoubleUtil.
AreClose
(computedViewportOffset.Y/extentSize.Height, _scrollData._offset.Y/_scrollData._extent.Height))
10889
if (!LayoutDoubleUtil.
AreClose
(Math.Floor(computedViewportOffset.Y)/extentSize.Height, Math.Floor(_scrollData._offset.Y)/_scrollData._extent.Height))
System\Windows\FrameworkElement.cs (1)
6437
return (value1 < value2) && !
AreClose
(value1, value2);