24 references to AreClose
System.Windows.Controls.Ribbon (24)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (1)
146
if (DoubleUtil.
AreClose
(startX, 0.0))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (2)
768
if (!DoubleUtil.
AreClose
(scrollX, _scrollData._offset.X))
782
if (!DoubleUtil.
AreClose
(scrollY, _scrollData._offset.Y))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
107
if (!DoubleUtil.
AreClose
(originalRenderWidth, invalidGroup.ActualWidth))
353
if (!DoubleUtil.
AreClose
(remainingSpace, newRemainingSpace))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonScrollButtonVisibilityConverter.cs (1)
92
if (DoubleUtil.
AreClose
(percent, target))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (6)
75
if (DoubleUtil.
AreClose
(maxRegularTabHeaderWidth, _tabHeaderMinWidth)) // Regular tabs are clipped to the min size - need to clip contextual tabs
803
fValid &= DoubleUtil.
AreClose
(viewportWidth, ScrollData._viewportWidth);
804
fValid &= DoubleUtil.
AreClose
(extentWidth, ScrollData._extentWidth);
805
fValid &= DoubleUtil.
AreClose
(ScrollData._offsetX, offsetX);
856
if (!DoubleUtil.
AreClose
(ScrollData._offsetX, newValue))
917
if (!DoubleUtil.
AreClose
(originalOffset, ScrollData._offsetX))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (2)
93
if (!DoubleUtil.
AreClose
(ScrollData._offsetX, newValue))
154
if (!DoubleUtil.
AreClose
(originalOffset, ScrollData._offsetX))
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (1)
235
DoubleUtil.
AreClose
(unitFactor, 1.0));
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2882
if (!DoubleUtil.
AreClose
(oldHeight, newHeight) &&
MS\Internal\Generated\DoubleUtil.cs (8)
64
return (value1 < value2) && !
AreClose
(value1, value2);
85
return (value1 > value2) && !
AreClose
(value1, value2);
106
return (value1 < value2) ||
AreClose
(value1, value2);
127
return (value1 > value2) ||
AreClose
(value1, value2);
169
return DoubleUtil.
AreClose
(size1.Width, size2.Width) &&
170
DoubleUtil.
AreClose
(size1.Height, size2.Height);
183
return DoubleUtil.
AreClose
(vector1.X, vector2.X) &&
184
DoubleUtil.
AreClose
(vector1.Y, vector2.Y);