24 references to LessThanOrClose
System.Windows.Controls.Ribbon (24)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (1)
492logicalVisibleSpace = DoubleUtil.LessThanOrClose((viewportOffsetY + logicalVisibleSpace) - stackDesiredSize.Height, 0.0) ? 0.0 : Math.Min((viewportOffsetY + logicalVisibleSpace) - stackDesiredSize.Height, constraint.Height);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
442if (DoubleUtil.LessThanOrClose(EqualizeLeftOf(starInfoList, elementCount - 1, true), remainingSpace)) 458if (DoubleUtil.LessThanOrClose(EqualizeLeftOf(starInfoList, currentIndex, true), remainingSpace))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonScrollButtonVisibilityConverter.cs (1)
84if (DoubleUtil.LessThanOrClose(extent, viewport))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (2)
479if (DoubleUtil.LessThanOrClose(clipWidth, 0)) 570if (DoubleUtil.LessThanOrClose(delta, 0.0))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (2)
141if (DoubleUtil.LessThanOrClose(titleHost.DesiredSize.Width, leftSpace)) 215if ( DoubleUtil.LessThanOrClose(width, leftSpace) )
Microsoft\Windows\Controls\Ribbon\RibbonControlSizeDefinition.cs (1)
108if (double.IsInfinity(length.Value) || DoubleUtil.LessThanOrClose(length.Value, 0))
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (6)
67bool isAtTopScreenEdge = DoubleUtil.LessThanOrClose(rootScreenBounds.Top, screenBounds.Top + TopScreenEdgeBuffer); 69bool isAtLeftScreenEdge = DoubleUtil.LessThanOrClose(rootScreenBounds.Left, screenBounds.Left); 74bool isAlmostAtTopScreenEdge = DoubleUtil.LessThanOrClose(rootScreenBounds.Top - verticalDelta, screenBounds.Top + TopScreenEdgeBuffer); 76bool isAlmostAtLeftScreenEdge = DoubleUtil.LessThanOrClose(rootScreenBounds.Left - horizontalDelta, screenBounds.Left); 136DoubleUtil.LessThanOrClose(minDropDownSize.Width, newWidth)) 143&& DoubleUtil.LessThanOrClose(minDropDownSize.Height, newHeight))
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (2)
1700DoubleUtil.LessThanOrClose(horizontalOffset, ribbon.ActualWidth)) 1730DoubleUtil.LessThanOrClose(horizontalOffset, ribbonPopupChild.RenderSize.Width))
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (5)
820if (DoubleUtil.LessThanOrClose(viewportHeight, 0)) 849if (DoubleUtil.LessThanOrClose(viewportHeight, 0)) 883if (DoubleUtil.LessThanOrClose(viewportHeight, 0) || 1121DoubleUtil.LessThanOrClose(position.X, element.RenderSize.Width) && 1122DoubleUtil.LessThanOrClose(position.Y, element.RenderSize.Height))
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1271IsDropDownPositionedAbove = DoubleUtil.LessThanOrClose(popupBottomRightCorner.Y, targetTopLeftCorner.Y);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
1318bool isDropDownPhysicallyPositionedLeft = DoubleUtil.LessThanOrClose(popupTopLeftCorner.X, targetTopLeftCorner.X);