24 references to AreClose
System.Windows.Controls.Ribbon (24)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (1)
142
if (DoubleUtil.
AreClose
(startX, 0.0))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (2)
764
if (!DoubleUtil.
AreClose
(scrollX, _scrollData._offset.X))
778
if (!DoubleUtil.
AreClose
(scrollY, _scrollData._offset.Y))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
106
if (!DoubleUtil.
AreClose
(originalRenderWidth, invalidGroup.ActualWidth))
352
if (!DoubleUtil.
AreClose
(remainingSpace, newRemainingSpace))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonScrollButtonVisibilityConverter.cs (1)
91
if (DoubleUtil.
AreClose
(percent, target))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (6)
74
if (DoubleUtil.
AreClose
(maxRegularTabHeaderWidth, _tabHeaderMinWidth)) // Regular tabs are clipped to the min size - need to clip contextual tabs
802
fValid &= DoubleUtil.
AreClose
(viewportWidth, ScrollData._viewportWidth);
803
fValid &= DoubleUtil.
AreClose
(extentWidth, ScrollData._extentWidth);
804
fValid &= DoubleUtil.
AreClose
(ScrollData._offsetX, offsetX);
849
if (!DoubleUtil.
AreClose
(ScrollData._offsetX, newValue))
910
if (!DoubleUtil.
AreClose
(originalOffset, ScrollData._offsetX))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (2)
92
if (!DoubleUtil.
AreClose
(ScrollData._offsetX, newValue))
153
if (!DoubleUtil.
AreClose
(originalOffset, ScrollData._offsetX))
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (1)
234
DoubleUtil.
AreClose
(unitFactor, 1.0));
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2867
if (!DoubleUtil.
AreClose
(oldHeight, newHeight) &&
MS\Internal\Generated\DoubleUtil.cs (8)
63
return (value1 < value2) && !
AreClose
(value1, value2);
84
return (value1 > value2) && !
AreClose
(value1, value2);
105
return (value1 < value2) ||
AreClose
(value1, value2);
126
return (value1 > value2) ||
AreClose
(value1, value2);
168
return DoubleUtil.
AreClose
(size1.Width, size2.Width) &&
169
DoubleUtil.
AreClose
(size1.Height, size2.Height);
182
return DoubleUtil.
AreClose
(vector1.X, vector2.X) &&
183
DoubleUtil.
AreClose
(vector1.Y, vector2.Y);