144 references to DoubleUtil
System.Windows.Controls.Ribbon (144)
Microsoft\Windows\Controls\KeyTipAdorner.cs (6)
313if (DoubleUtil.LessThan(Math.Abs(keyTipTopY), RibbonGroupKeyTipAxisNudgeSpace)) 318else if (DoubleUtil.LessThan(Math.Abs(itemsPresenter.ActualHeight - keyTipBottomY), RibbonGroupKeyTipAxisNudgeSpace)) 351if (DoubleUtil.LessThan(keyTipControlRect.Left, adornerLayerRect.Left)) 355else if (DoubleUtil.GreaterThan(keyTipControlRect.Right, adornerLayerRect.Right)) 362if (DoubleUtil.LessThan(keyTipControlRect.Top, adornerLayerRect.Top)) 366else if (DoubleUtil.GreaterThan(keyTipControlRect.Bottom, adornerLayerRect.Bottom))
Microsoft\Windows\Controls\Ribbon\NativeMethods.cs (4)
402top = DoubleUtil.DoubleToInt(rect.Y), 403left = DoubleUtil.DoubleToInt(rect.X), 404bottom = DoubleUtil.DoubleToInt(rect.Bottom), 405right = DoubleUtil.DoubleToInt(rect.Right)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (5)
51if (tabGroupHeader.Visibility == Visibility.Visible && tabGroupHeader.FirstVisibleTab != null && DoubleUtil.GreaterThanOrClose(remainingSpace, 0.0)) 61if ( DoubleUtil.GreaterThan(desiredExtraPadding, 0.0) && 62DoubleUtil.GreaterThan(tabHeadersPanelSpaceAvailable, 0.0)) 82tabGroupHeader.ShowLabelToolTip = DoubleUtil.GreaterThan(tabGroupHeader.IdealDesiredWidth, width); 146if (DoubleUtil.AreClose(startX, 0.0))
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\RibbonGroupItemsPanel.cs (2)
66if (DoubleUtil.GreaterThan(childDesiredSize.Height, remainingHeightInColumn)) 212if (DoubleUtil.GreaterThan(columnHeight + childDesiredSize.Height, availableSize.Height))
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\RibbonMenuItemsPanel.cs (1)
213if (DoubleUtil.GreaterThan(remainingHeight, 0.0) && starLayoutTargets.Count > 0)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (1)
208if (DoubleUtil.GreaterThan(newExtent, maxExtent))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonScrollButtonVisibilityConverter.cs (2)
84if (DoubleUtil.LessThanOrClose(extent, viewport)) 92if (DoubleUtil.AreClose(percent, target))
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\Primitives\RibbonTabsPanel.cs (6)
93if (!DoubleUtil.AreClose(ScrollData._offsetX, newValue)) 154if (!DoubleUtil.AreClose(originalOffset, ScrollData._offsetX)) 191bool fAbove = DoubleUtil.LessThan(topChild, topView) && DoubleUtil.LessThan(bottomChild, bottomView); 192bool fBelow = DoubleUtil.GreaterThan(bottomChild, bottomView) && DoubleUtil.GreaterThan(topChild, topView);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (5)
107if ((DoubleUtil.LessThan(rightSpace, titleHost.MinWidth) || 108DoubleUtil.GreaterThan(startContextualTabX, endContextualTabX)) 109&& DoubleUtil.GreaterThan(startContextualTabX, titleHost.MinWidth)) 141if (DoubleUtil.LessThanOrClose(titleHost.DesiredSize.Width, leftSpace)) 215if ( DoubleUtil.LessThanOrClose(width, leftSpace) )
Microsoft\Windows\Controls\Ribbon\Primitives\StarLayoutInfo.cs (5)
108DoubleUtil.GreaterThanOrClose(starWeight, 0.0)); 122DoubleUtil.GreaterThanOrClose(starMinWidth, 0.0)); 130if (DoubleUtil.LessThan(maxWidth, minWidth)) 141DoubleUtil.GreaterThan(starMaxWidth, 0.0)); 148if (DoubleUtil.LessThan(allocatedWidth, layoutInfo.RequestedStarMinWidth))
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
920ContextualTabGroupItemsControl.ForceCollapse = !(DoubleUtil.GreaterThanOrClose(e.ViewportWidth, e.ExtentWidth)); 976if (DoubleUtil.GreaterThan(Math.Abs(_mouseWheelCumulativeDelta), MouseWheelSelectionChangeThreshold)) 1442(DoubleUtil.LessThan(window.ActualWidth, CollapseWidth) || 1443DoubleUtil.LessThan(window.ActualHeight, CollapseHeight)))
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (2)
160return (DoubleUtil.IsOne(length.Value) ? "*" : Convert.ToString(length.Value, cultureInfo) + "*"); 235DoubleUtil.AreClose(unitFactor, 1.0));
Microsoft\Windows\Controls\Ribbon\RibbonControlSizeDefinition.cs (3)
108if (double.IsInfinity(length.Value) || DoubleUtil.LessThanOrClose(length.Value, 0)) 118if (length.IsAuto || length.IsStar || double.IsInfinity(length.Value) || DoubleUtil.LessThan(length.Value, 0)) 128if (length.IsAuto || length.IsStar || DoubleUtil.LessThan(length.Value, 0))
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))
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (2)
2735if ((FlowDirection == FlowDirection.LeftToRight && DoubleUtil.GreaterThan(predictedFocusedOrigin.X, focusedOrigin.X)) || 2736(FlowDirection == FlowDirection.RightToLeft && DoubleUtil.LessThan(predictedFocusedOrigin.X, focusedOrigin.X)))
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (4)
1699if (DoubleUtil.GreaterThanOrClose(horizontalOffset, 0) && 1700DoubleUtil.LessThanOrClose(horizontalOffset, ribbon.ActualWidth)) 1729if (DoubleUtil.GreaterThanOrClose(horizontalOffset, 0) && 1730DoubleUtil.LessThanOrClose(horizontalOffset, ribbonPopupChild.RenderSize.Width))
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (8)
820if (DoubleUtil.LessThanOrClose(viewportHeight, 0)) 849if (DoubleUtil.LessThanOrClose(viewportHeight, 0)) 883if (DoubleUtil.LessThanOrClose(viewportHeight, 0) || 1119if (DoubleUtil.GreaterThan(position.X, 0) && 1120DoubleUtil.GreaterThan(position.Y, 0) && 1121DoubleUtil.LessThanOrClose(position.X, element.RenderSize.Width) && 1122DoubleUtil.LessThanOrClose(position.Y, element.RenderSize.Height)) 2892if (!DoubleUtil.AreClose(oldHeight, newHeight) &&
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);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (4)
655if (DoubleUtil.LessThan(tabHeaderCenterX, 0) || 656DoubleUtil.GreaterThan(tabHeaderCenterX, tabHeaderItemsControl.ActualWidth)) 667if (DoubleUtil.LessThan(horizontalOffset, 0) || 668DoubleUtil.GreaterThan(horizontalOffset, ribbon.ActualWidth))
MS\Internal\Generated\DoubleUtil.cs (4)
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);