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