Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (11)
145fValid &= DoubleUtil.AreClose(viewport, _scrollData._viewport);
146fValid &= DoubleUtil.AreClose(extent, _scrollData._extent);
147fValid &= DoubleUtil.AreClose(offset, _scrollData._offset);
176bool fAbove = DoubleUtil.LessThan(topChild, topView) && DoubleUtil.LessThan(bottomChild, bottomView);
177bool fBelow = DoubleUtil.GreaterThan(bottomChild, bottomView) && DoubleUtil.GreaterThan(topChild, topView);
399if (!category.IsSharedColumnSizeScope && DoubleUtil.GreaterThan(category.MaxColumnWidth, maxColumnWidth))
492logicalVisibleSpace = DoubleUtil.LessThanOrClose((viewportOffsetY + logicalVisibleSpace) - stackDesiredSize.Height, 0.0) ? 0.0 : Math.Min((viewportOffsetY + logicalVisibleSpace) - stackDesiredSize.Height, constraint.Height);
768if (!DoubleUtil.AreClose(scrollX, _scrollData._offset.X))
782if (!DoubleUtil.AreClose(scrollY, _scrollData._offset.Y))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (23)
107if (!DoubleUtil.AreClose(originalRenderWidth, invalidGroup.ActualWidth))
151if (DoubleUtil.GreaterThan(remainingSpace, 0))
159if ((DoubleUtil.GreaterThanOrClose(_cachedRemainingSpace, 0) && (DoubleUtil.LessThan(remainingSpace, 0) || DoubleUtil.GreaterThan(remainingSpace, _cachedRemainingSpace))) ||
160(DoubleUtil.LessThan(_cachedRemainingSpace, 0) && DoubleUtil.GreaterThan(remainingSpace, 0)))
165while (DoubleUtil.GreaterThan(remainingSpace, 0))
177if (DoubleUtil.GreaterThan(remainingSpace, 0))
180DoubleUtil.GreaterThanOrClose(remainingSpace, _nextGroupIncreaseWidth))
201while (DoubleUtil.LessThan(remainingSpace, 0))
235if (DoubleUtil.GreaterThan(remainingSpace, 0))
252else if (DoubleUtil.GreaterThan(remainingSpace, 0))
353if (!DoubleUtil.AreClose(remainingSpace, newRemainingSpace))
383if (starLayoutInfo != null && DoubleUtil.GreaterThan(starLayoutInfo.RequestedStarWeight, 0))
400if (DoubleUtil.GreaterThan(remainingSpace, 0))
412if (rightMostEqualizerIndex >= 0 && DoubleUtil.GreaterThan(remainingSpace, 0))
437Debug.Assert(DoubleUtil.GreaterThan(remainingSpace, 0));
442if (DoubleUtil.LessThanOrClose(EqualizeLeftOf(starInfoList, elementCount - 1, true), remainingSpace))
458if (DoubleUtil.LessThanOrClose(EqualizeLeftOf(starInfoList, currentIndex, true), remainingSpace))
503Debug.Assert(DoubleUtil.GreaterThan(remainingSpace, 0));
515if (DoubleUtil.GreaterThan(remainingSpace, 0))
520if (DoubleUtil.GreaterThan(currentContribution * remainingStarWeight, remainingSpace))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (23)
62if (DoubleUtil.GreaterThan(overflowWidth, 0))
68if (DoubleUtil.GreaterThan(overflowWidth, totalDefaultPaddingAllTabHeaders)) // Clipping is necessary - all tabs padding will we 0
75if (DoubleUtil.AreClose(maxRegularTabHeaderWidth, _tabHeaderMinWidth)) // Regular tabs are clipped to the min size - need to clip contextual tabs
87if (DoubleUtil.GreaterThanOrClose(totalDefaultPaddingRegularTabHeaders, overflowWidth))
120if (ctg != null && DoubleUtil.GreaterThan(ctg.DesiredExtraPaddingPerTab, 0.0))
235if (!SystemParameters.HighContrast && DoubleUtil.GreaterThan(_separatorOpacity, 0))
479if (DoubleUtil.LessThanOrClose(clipWidth, 0))
520if (DoubleUtil.GreaterThanOrClose(maxTabHeaderWidth, currentWidth))
553if (tabGroup != null && DoubleUtil.GreaterThan(tabGroup.DesiredExtraPaddingPerTab, 0.0))
570if (DoubleUtil.LessThanOrClose(delta, 0.0))
580if (DoubleUtil.GreaterThanOrClose(maxDesiredPadding, currentDesiredPadding))
616if (!DoubleUtil.IsZero(tabGroup.DesiredExtraPaddingPerTab))
803fValid &= DoubleUtil.AreClose(viewportWidth, ScrollData._viewportWidth);
804fValid &= DoubleUtil.AreClose(extentWidth, ScrollData._extentWidth);
805fValid &= DoubleUtil.AreClose(ScrollData._offsetX, offsetX);
824if (DoubleUtil.GreaterThan(offset, extent - viewport))
829if (DoubleUtil.LessThan(offset, 0))
856if (!DoubleUtil.AreClose(ScrollData._offsetX, newValue))
917if (!DoubleUtil.AreClose(originalOffset, ScrollData._offsetX))
954bool fAbove = DoubleUtil.LessThan(topChild, topView) && DoubleUtil.LessThan(bottomChild, bottomView);
955bool fBelow = DoubleUtil.GreaterThan(bottomChild, bottomView) && DoubleUtil.GreaterThan(topChild, topView);
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (17)
66bool isAtBottomScreenEdge = DoubleUtil.GreaterThanOrClose(rootScreenBounds.Bottom, screenBounds.Bottom);
67bool isAtTopScreenEdge = DoubleUtil.LessThanOrClose(rootScreenBounds.Top, screenBounds.Top + TopScreenEdgeBuffer);
68bool isAtRightScreenEdge = DoubleUtil.GreaterThanOrClose(rootScreenBounds.Right, screenBounds.Right);
69bool isAtLeftScreenEdge = DoubleUtil.LessThanOrClose(rootScreenBounds.Left, screenBounds.Left);
73bool isAlmostAtBottomScreenEdge = DoubleUtil.GreaterThanOrClose(rootScreenBounds.Bottom + verticalDelta, screenBounds.Bottom);
74bool isAlmostAtTopScreenEdge = DoubleUtil.LessThanOrClose(rootScreenBounds.Top - verticalDelta, screenBounds.Top + TopScreenEdgeBuffer);
75bool isAlmostAtRightScreenEdge = DoubleUtil.GreaterThanOrClose(rootScreenBounds.Right + horizontalDelta, screenBounds.Right);
76bool isAlmostAtLeftScreenEdge = DoubleUtil.LessThanOrClose(rootScreenBounds.Left - horizontalDelta, screenBounds.Left);
80if (isAtTopScreenEdge && DoubleUtil.GreaterThanOrClose(verticalDelta, 0))
91if (isAtBottomScreenEdge && DoubleUtil.GreaterThanOrClose(verticalDelta, 0))
103if (isAtRightScreenEdge && DoubleUtil.GreaterThanOrClose(horizontalDelta, 0))
112if (isAtLeftScreenEdge && DoubleUtil.GreaterThanOrClose(horizontalDelta, 0))
135if (canUserResizeHorizontally && DoubleUtil.GreaterThanOrClose(newWidth, 0) &&
136DoubleUtil.LessThanOrClose(minDropDownSize.Width, newWidth))
142if (canUserResizeVertically && DoubleUtil.GreaterThanOrClose(newHeight, 0)
143&& DoubleUtil.LessThanOrClose(minDropDownSize.Height, newHeight))
219if (popupChild != null && DoubleUtil.GreaterThan(popupChild.MinWidth, minSize.Width))