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