322 references to Min
Microsoft.Build (1)
Evaluation\Expander.cs (1)
3913returnVal = Math.Min(arg0, arg1);
Microsoft.Extensions.Caching.StackExchangeRedis (1)
RedisCache.cs (1)
573return (long)Math.Min(
PresentationCore (37)
MS\Internal\Ink\CuspData.cs (1)
473rMin = Math.Min(rMin, a);
MS\Internal\Ink\EllipticalNodeOperations.cs (2)
732findex = Math.Min(s1, s2); 759findex = Math.Abs(Math.Min(s1, s2) - 0d) < Math.Abs(Math.Max(s1, s2) - 1d) ? 0d : 1d;
MS\Internal\Ink\ErasingStroke.cs (1)
186Math.Min(lastFragment.BeginFIndex, fragment.BeginFIndex),
MS\Internal\Ink\Lasso.cs (2)
155DoubleUtil.GreaterThanOrClose(point.X, Math.Min(prevLassoPoint.X, lassoPoint.X)) && 170else if (DoubleUtil.GreaterThanOrClose(point.X, Math.Min(prevLassoPoint.X, lassoPoint.X)))
MS\Internal\Ink\StrokeRenderer.cs (6)
113if ((Math.Min(prevArea, currArea) / Math.Max(prevArea, currArea)) <= 0.70d) 255percentIntersect += Math.Min(4.99999d, ((maxExtent / 20d) * 5d)); 533if ((Math.Min(prevArea, currArea) / Math.Max(prevArea, currArea)) <= 0.90d) 840double intersectWidth = Math.Max((double)(Math.Min(rect1.Right, rect2.Right) - intersectLeft), (double)0); 841double intersectHeight = Math.Max((double)(Math.Min(rect1.Bottom, rect2.Bottom) - intersectTop), (double)0); 851double minArea = Math.Min(rect1Area, rect2Area);
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (8)
517if (!((Math.Max(visEdgeStart.X, visEdgeEnd.X) < Math.Min(uv1.X, uv2.X)) || 518(Math.Min(visEdgeStart.X, visEdgeEnd.X) > Math.Max(uv1.X, uv2.X)) || 519(Math.Max(visEdgeStart.Y, visEdgeEnd.Y) < Math.Min(uv1.Y, uv2.Y)) || 520(Math.Min(visEdgeStart.Y, visEdgeEnd.Y) > Math.Max(uv1.Y, uv2.Y)))) 935if (!((Math.Max(visEdgeStart.X, visEdgeEnd.X) < Math.Min(uv1.X, uv2.X)) || 936(Math.Min(visEdgeStart.X, visEdgeEnd.X) > Math.Max(uv1.X, uv2.X)) || 937(Math.Max(visEdgeStart.Y, visEdgeEnd.Y) < Math.Min(uv1.Y, uv2.Y)) || 938(Math.Min(visEdgeStart.Y, visEdgeEnd.Y) > Math.Max(uv1.Y, uv2.Y))))
System\Windows\Ink\Stroke.cs (1)
246double min = Math.Min(shapeBoundingBox.Width, shapeBoundingBox.Height);
System\Windows\Media\Animation\CircleEase.cs (1)
16normalizedTime = Math.Max(0.0, Math.Min(1.0, normalizedTime));
System\Windows\Media\FormattedText.cs (3)
1802accBlackBoxLeft = Math.Min(accBlackBoxLeft, blackBoxLeft); 1805accBlackBoxTop = Math.Min(accBlackBoxTop, blackBoxTop); 1813lineStartOfLongestLine = Math.Min(lineStartOfLongestLine, currentLine.Start);
System\Windows\Media\GlyphRun.cs (1)
1418double inflation = Math.Min(_renderingEmSize / 7.0, 1.0);
System\Windows\Media\RectangleGeometry.cs (2)
478radiusX = Math.Min(rect.Width * (1.0 / 2.0), Math.Abs(radiusX)); 479radiusY = Math.Min(rect.Height * (1.0 / 2.0), Math.Abs(radiusY));
System\Windows\Media3D\Rect3D.cs (9)
97_x = Math.Min(point1._x, point2._x); 98_y = Math.Min(point1._y, point2._y); 99_z = Math.Min(point1._z, point2._z); 441_sizeX = Math.Min(_x + _sizeX, rect._x + rect._sizeX) - x; 442_sizeY = Math.Min(_y + _sizeY, rect._y + rect._sizeY) - y; 443_sizeZ = Math.Min(_z + _sizeZ, rect._z + rect._sizeZ) - z; 476double x = Math.Min(_x, rect._x); 477double y = Math.Min(_y, rect._y); 478double z = Math.Min(_z, rect._z);
PresentationFramework (175)
MS\Internal\Documents\DocumentGrid.cs (5)
584double clippedHorizontalOffset = Math.Min(_horizontalOffset, ExtentWidth - ViewportWidth); 627double clippedVerticalOffset = Math.Min(_verticalOffset, ExtentHeight - ViewportHeight); 2371newScale = Math.Min(newScale, DocumentViewerConstants.MaximumScale); 2440scaleFactor = Math.Min(compensatedViewportWidth / rowWidth, compensatedViewportHeight / rowHeight); 2469scaleFactor = Math.Min(compensatedViewportWidth / rowWidth,
MS\Internal\Documents\FlowDocumentView.cs (4)
84desiredSize.Width = Math.Min(constraint.Width, _formatter.DocumentPage.Size.Width); 85desiredSize.Height = Math.Min(constraint.Height, _formatter.DocumentPage.Size.Height); 144Math.Max(0, Math.Min(_scrollData.ExtentWidth - _scrollData.ViewportWidth, _scrollData.HorizontalOffset)), 145Math.Max(0, Math.Min(_scrollData.ExtentHeight - _scrollData.ViewportHeight, _scrollData.VerticalOffset)));
MS\Internal\Documents\MultiPageTextView.cs (2)
1100horz = Math.Min(Math.Abs(point.X - textViewBounds.Left), Math.Abs(point.X - textViewBounds.Right)); 1108vert = Math.Min(Math.Abs(point.Y - textViewBounds.Top), Math.Abs(point.Y - textViewBounds.Bottom));
MS\Internal\Documents\ScrollData.cs (2)
135offset = Math.Max(0, Math.Min(_extent.Width - _viewport.Width, offset)); 157offset = Math.Max(0, Math.Min(_extent.Height - _viewport.Height, offset));
MS\Internal\Documents\TextBoxView.cs (4)
503desiredSize.Width = Math.Min(constraint.Width, desiredSize.Width); 504desiredSize.Height = Math.Min(constraint.Height, desiredSize.Height); 1791Math.Max(0, Math.Min(_scrollData.ExtentWidth - _scrollData.ViewportWidth, _scrollData.HorizontalOffset)), 1792Math.Max(0, Math.Min(_scrollData.ExtentHeight - _scrollData.ViewportHeight, _scrollData.VerticalOffset)));
MS\Internal\Ink\LassoHelper.cs (2)
237&& DoubleUtil.GreaterThanOrClose(point.X, Math.Min(prevLassoPoint.X, lassoPoint.X)) 258else if (DoubleUtil.GreaterThanOrClose(point.X, Math.Min(prevLassoPoint.X, lassoPoint.X)))
MS\Internal\Ink\PenCursorManager.cs (1)
347double maxLength = Math.Min(SystemParameters.PrimaryScreenWidth / 2, SystemParameters.PrimaryScreenHeight / 2);
MS\Internal\PtsHost\FigureHelper.cs (3)
184value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight)); 189value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom)); 257width = Math.Min(width, pageWidth);
MS\Internal\PtsHost\FloaterParagraph.cs (1)
882return Math.Min(desiredSize, spaceAvailable);
MS\Internal\PtsHost\PtsHelper.cs (1)
885columnWidth = Math.Max(1, Math.Min(columnWidth, pageWidth));
MS\Internal\Text\DynamicPropertyReader.cs (1)
217return Math.Max(TextDpi.MinWidth, Math.Min(TextDpi.MaxWidth, lineHeight));
System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (3)
217return Math.Min(100.0, (double)(owner.ViewportWidth * 100.0 / owner.ExtentWidth)); 231return Math.Min(100.0, (double)(owner.ViewportHeight * 100.0 / owner.ExtentHeight)); 267return Math.Min(100.0, (double)(viewport * 100.0 / extent));
System\Windows\Controls\DataGridCellsPanel.cs (1)
1909childMeasureWidth = Math.Min(childMeasureWidth, column.MaxWidth);
System\Windows\Controls\DataGridColumnCollection.cs (10)
1276double displayValue = Math.Min(width.DesiredValue, maxWidth); 1368column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, Math.Min(width.DesiredValue, maxWidth))); 1787double maxColumnResizeWidth = expandBeyondDesiredWidth ? column.MaxWidth : Math.Min(width.DesiredValue, column.MaxWidth); 1922column.UpdateWidthForStarColumn(Math.Min(columnDesiredWidth, column.MaxWidth), columnDesiredWidth, columnDesiredWidth / perStarWidth); 2009double usedStarSpace = ComputeStarColumnWidths(Math.Min(expectedStarSpace, sumOfStarMaxWidths)); 2080double lagWidth = Math.Min(width.DesiredValue, columnMaxWidth) - width.DisplayValue; 2111if (DoubleUtil.LessThan(width.DisplayValue, Math.Min(width.DesiredValue, column.MaxWidth))) 2139giveAwayWidth -= Math.Min(contributingSpace, giveAwayWidth); 2146giveAwayWidth = Math.Min(giveAwayWidth, Math.Max(0d, totalSpace - usedSpace)); 2193return Math.Min(usedSpace - totalAvailableWidth, takeAwayWidth);
System\Windows\Controls\DataGridHelper.cs (1)
723value = Math.Min(value, maxValue);
System\Windows\Controls\FlowDocumentReader.cs (1)
722SetCurrentValueInternal(ZoomProperty, Math.Min(Zoom + ZoomIncrement, MaxZoom));
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
634Zoom = Math.Min(Zoom + ZoomIncrement, MaxZoom); 712SetCurrentValueInternal(ZoomProperty, Math.Min(Zoom + ZoomIncrement, MaxZoom));
System\Windows\Controls\Grid.cs (19)
1106userMinSize = Math.Max(userMinSize, Math.Min(userSize, userMaxSize)); 1130definitions[i].MeasureSize = Math.Max(userMinSize, Math.Min(userSize, userMaxSize)); 1230DefinitionsU[PrivateCells[i].ColumnIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Width, DefinitionsU[PrivateCells[i].ColumnIndex].UserMaxSize)); 1247DefinitionsV[PrivateCells[i].RowIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Height, DefinitionsV[PrivateCells[i].RowIndex].UserMaxSize)); 1520double newMinSize = Math.Min(sizeToDistribute / (count - i), tempDefinitions[i].PreferredSize); 1550tempDefinitions[i].UpdateMinSize(Math.Min(newMinSize, tempDefinitions[i].SizeCache)); 1561tempDefinitions[i].UpdateMinSize(Math.Min(newMinSize, tempDefinitions[i].SizeCache)); 1672starValue = Math.Min(starValue, c_starClip); 1677maxSize = Math.Min(maxSize, c_starClip); 1716resolvedSize = Math.Min(userSize, tempDefinitions[i].UserMaxSize); 2022resolvedSize = Math.Min(resolvedSize, def.UserMaxSize); 2112starValue = Math.Min(starValue, c_starClip); 2117maxSize = Math.Min(maxSize, c_starClip); 2157definitions[i].SizeCache = Math.Max(definitions[i].MinSizeForArrange, Math.Min(userSize, userMaxSize)); 2203resolvedSize = Math.Min(userSize, definitions[definitionIndices[i]].UserMaxSize); 2230final = Math.Min(final, definitions[definitionIndex].SizeCache); 2237final = Math.Min(final, definitions[definitionIndex].SizeCache); 2443def.SizeCache = Math.Max(def.MinSizeForArrange, Math.Min(userSize, userMaxSize)); 2647resolvedSize = Math.Min(resolvedSize, def.UserMaxSize);
System\Windows\Controls\GridSplitter.cs (6)
504_resizeData.SplitterLength = Math.Min(ActualWidth, ActualHeight); 664_resizeData.Adorner.OffsetX = Math.Min(Math.Max(horizontalChange, _resizeData.MinChange), _resizeData.MaxChange); 668_resizeData.Adorner.OffsetY = Math.Min(Math.Max(verticalChange, _resizeData.MinChange), _resizeData.MaxChange); 812minDelta = -Math.Min(definition1Len - definition1Min, definition2Max - definition2Len); 813maxDelta = Math.Min(definition1Max - definition1Len, definition2Len - definition2Min); 921delta = Math.Min(Math.Max(delta, min), max);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
284childConstraintWidth = Math.Min(childConstraintWidth, column.DesiredWidth); 292childConstraintWidth = Math.Min(childConstraintWidth, column.Width); 355double childArrangeWidth = Math.Min(remainingWidth, ((column.State == ColumnMeasureState.SpecificWidth) ? column.Width : column.DesiredWidth));
System\Windows\Controls\GridViewRowPresenter.cs (3)
177childConstraintWidth = Math.Min(childConstraintWidth, column.DesiredWidth); 185childConstraintWidth = Math.Min(childConstraintWidth, column.Width); 225double childArrangeWidth = Math.Min(remainingWidth, ((column.State == ColumnMeasureState.SpecificWidth) ? column.Width : column.DesiredWidth));
System\Windows\Controls\InkPresenter.cs (2)
211availableSize = new Size(Math.Min(arrangeSize.Width, _constraintSize.Width), 212Math.Min(arrangeSize.Height, _constraintSize.Height));
System\Windows\Controls\MenuScrollingVisibilityConverter.cs (1)
90double percent = Math.Min(100.0, Math.Max(0.0, (verticalOffset * 100.0 / (extentHeight - viewportHeight))));
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
134desiredSize.Width = Math.Min(availableSize.Width, desiredSize.Width); 923columnEstimatedWidth = Math.Min(columnEstimatedWidth, column.MaxWidth);
System\Windows\Controls\Primitives\DocumentPageView.cs (2)
962pageVisualRect.Width = Math.Min(pageVisualRect.Width, maxWidth); 963pageVisualRect.Height = Math.Min(pageVisualRect.Height, maxHeight);
System\Windows\Controls\Primitives\Popup.cs (5)
2629desiredSize.Width = Math.Min(desiredSize.Width, screenBounds.Width); 2630desiredSize.Width = Math.Min(desiredSize.Width, limitSize.Width); 2634desiredSize.Height = Math.Min(desiredSize.Height, screenBounds.Height); 2635desiredSize.Height = Math.Min(desiredSize.Height, maxHeight); 2636desiredSize.Height = Math.Min(desiredSize.Height, limitSize.Height);
System\Windows\Controls\Primitives\PopupRoot.cs (2)
239return new Size(Math.Min(restrictedSize.Width, restricted2DDesiredSize.Width), 240Math.Min(restrictedSize.Height, restricted2DDesiredSize.Height));
System\Windows\Controls\Primitives\ScrollBar.cs (3)
425newValue = Math.Min(Math.Max(newValue, Minimum), Maximum); 564double newValue = Math.Min(Value + SmallChange, Maximum); 582double newValue = Math.Min(Value + LargeChange, Maximum);
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
445desiredSize.Width = Math.Min(constraint.Width, desiredSize.Width); 446desiredSize.Height = Math.Min(constraint.Height, desiredSize.Height);
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (2)
122_wrapWidth = Math.Min(_wrapWidth, constraint.Width); 166_wrapWidth = Math.Min(_wrapWidth, arrangeBounds.Width);
System\Windows\Controls\Primitives\Track.cs (3)
82return Math.Max(Minimum, Math.Min(Maximum, val)); 582double offset = Math.Min(range, Value - min); 621double offset = Math.Min(range, Value - min);
System\Windows\Controls\ScrollViewer.cs (1)
1819double newUnused = Math.Min(unused + delta, 0);
System\Windows\Controls\SinglePageViewer.cs (1)
745SetCurrentValueInternal(ZoomProperty, Math.Min(Zoom + ZoomIncrement, MaxZoom));
System\Windows\Controls\Slider.cs (3)
1216next = Math.Min(Maximum, previous + TickFrequency); 1236double next = SnapToTick(Math.Max(this.Minimum, Math.Min(this.Maximum, value + direction))); 1435this.SetCurrentValueInternal(ValueProperty, Math.Max(this.Minimum, Math.Min(this.Maximum, snappedValue)));
System\Windows\Controls\Stack.cs (5)
669offset.Y = Math.Max(0, Math.Min(offset.Y, extent.Height - viewport.Height)); 677offset.X = Math.Max(0, Math.Min(offset.X, extent.Width - viewport.Width)); 682stackDesiredSize.Width = Math.Min(stackDesiredSize.Width, constraint.Width); 683stackDesiredSize.Height = Math.Min(stackDesiredSize.Height, constraint.Height); 903targetRectSize = Math.Max(Math.Min(targetRectSize + targetRectOffset, minPhysicalOffset + viewportSize) - left, 0);
System\Windows\Controls\StickyNote.cs (2)
1150horizontalChange = Math.Min(Math.Max(minBoundary.X, horizontalChange), maxBoundary.X); 1151verticalChange = Math.Min(Math.Max(minBoundary.Y, verticalChange), maxBoundary.Y);
System\Windows\Controls\VirtualizingStackPanel.cs (14)
2336double factor = Math.Min(1.0, isHorizontal ? viewport.Width / extendedViewport.Width : viewport.Height / extendedViewport.Height); 6733childViewport.X = Math.Min(childViewport.X, 0) - 6778childViewport.Y = Math.Min(childViewport.Y, 0) - 7238pixelSizeInViewport = Math.Min(childViewport.Width, childPixelSize.Width - pixelSizeBeforeViewport); 7293double childPixelHeightInViewport = Math.Min(childViewport.Height, childPixelSize.Height - Math.Max(childViewport.Y, 0.0)); 7330pixelSizeInViewport = Math.Min(childViewport.Height, childPixelSize.Height - pixelSizeBeforeViewport); 7385double childPixelWidthInViewport = Math.Min(childViewport.Width, childPixelSize.Width - Math.Max(childViewport.X, 0.0)); 9723Math.Min(stackPixelSize.Width, constraint.Width) : constraint.Width; 9728Math.Min(stackPixelSize.Height, constraint.Height) : constraint.Height; 10575Math.Min(stackPixelSize.Width, constraint.Width) : constraint.Width; 10580Math.Min(stackPixelSize.Height, constraint.Height) : constraint.Height; 10676lastPageSafeOffset = lastPageSafeOffset.HasValue ? Math.Min(computedViewportOffset.X, (double)lastPageSafeOffset) : computedViewportOffset.X; 10807lastPageSafeOffset = lastPageSafeOffset.HasValue ? Math.Min(computedViewportOffset.Y, (double)lastPageSafeOffset) : computedViewportOffset.Y; 11194double visibleEnd = Math.Max(Math.Min(end, viewportSize), visibleStart);
System\windows\Documents\CaretElement.cs (2)
417scroller.ScrollToVerticalOffset(Math.Min(scroller.ExtentHeight, scroller.VerticalOffset + deltaToScroll + scrollerHeight / 4)); 434scroller.ScrollToHorizontalOffset(Math.Min(scroller.ExtentWidth, scroller.HorizontalOffset + deltaToScroll + scrollerWidth / 4));
System\Windows\Documents\ImmComposition.cs (2)
674milPointTopLeft = new Point(Math.Min(rectStart.Left, rectEnd.Left), Math.Min(rectStart.Top, rectEnd.Top));
System\Windows\Documents\TextRangeEdit.cs (1)
2371retValue = Math.Min(retValue, _upperBound);
System\Windows\Documents\TextRangeEditTables.cs (2)
1734xPosAdorner = Math.Min(xPosAdorner, _columnRect.Right + this.RightDragMax); 1746dx = Math.Min(dx, this.RightDragMax);
System\Windows\Documents\TextStore.cs (2)
1000milPointTopLeft = new Point(Math.Min(rectPrev.Left, rectCur.Left), Math.Min(rectPrev.Top, rectCur.Top));
System\Windows\FrameworkElement.cs (19)
4059maxHeight = Math.Max(Math.Min(height, maxHeight), minHeight); 4062minHeight = Math.Max(Math.Min(maxHeight, height), minHeight); 4069maxWidth = Math.Max(Math.Min(width, maxWidth), minWidth); 4072minWidth = Math.Max(Math.Min(maxWidth, width), minWidth); 4195h = Math.Min(0.5*Math.Abs(xConstr/c), yCoverD); 4206w = Math.Min( 0.5*Math.Abs(yConstr/b), xCoverA); 4235h = Math.Min(0.5*Math.Abs(yConstr/d), xCoverC); 4246w = Math.Min( 0.5*Math.Abs(xConstr/a), yCoverB); 4263w = Math.Min(yCoverB, xCoverA) * 0.5; 4264h = Math.Min(xCoverC, yCoverD) * 0.5; 4281Double expandFactor = Math.Min(xConstr / childBoundsTr.Width, 4389frameworkAvailableSize.Width = Math.Max(mm.minWidth, Math.Min(frameworkAvailableSize.Width, mm.maxWidth)); 4390frameworkAvailableSize.Height = Math.Max(mm.minHeight, Math.Min(frameworkAvailableSize.Height, mm.maxHeight)); 4731Size clippedInkSize = new Size(Math.Min(innerInkSize.Width, mm.maxWidth), 4732Math.Min(innerInkSize.Height, mm.maxHeight)); 4914inkSize.Width = Math.Min(inkSize.Width, mm.maxWidth); 4915inkSize.Height = Math.Min(inkSize.Height, mm.maxHeight); 5245inkSize.Width = Math.Min(inkSize.Width, mm.maxWidth); 5246inkSize.Height = Math.Min(inkSize.Height, mm.maxHeight);
System\Windows\Input\KeyboardNavigation.cs (4)
2518rect.Height = Math.Min(Math.Max(before, 0.0d), rect.Height); 2522double height = Math.Min(Math.Max(after, 0.0d), rect.Height); 2669startRange = Math.Min(startRange, _horizontalBaseline); 2690startRange = Math.Min(startRange, _verticalBaseline);
System\Windows\Interop\HwndHost.cs (2)
707desiredSize.Width = Math.Min(_desiredSize.Width, constraint.Width); 708desiredSize.Height = Math.Min(_desiredSize.Height, constraint.Height);
System\Windows\Shapes\Ellipse.cs (1)
98width = Math.Min(width, height);
System\Windows\Shapes\Rectangle.cs (1)
150width = Math.Min(width, height);
System\Windows\Shell\TaskbarItemInfo.cs (1)
109progressValue = Math.Min(1, progressValue);
System\Windows\Shell\WindowChromeWorker.cs (5)
1065double shortestDimension = Math.Min(windowSize.Width, windowSize.Height); 1068topLeftRadius = Math.Min(topLeftRadius, shortestDimension / 2); 1084topRightRadius = Math.Min(topRightRadius, shortestDimension / 2); 1092bottomLeftRadius = Math.Min(bottomLeftRadius, shortestDimension / 2); 1100bottomRightRadius = Math.Min(bottomRightRadius, shortestDimension / 2);
System\Windows\Window.cs (8)
1769frameworkAvailableSize.Width = Math.Max(mm.minWidth, Math.Min(frameworkAvailableSize.Width, mm.maxWidth)); 1770frameworkAvailableSize.Height = Math.Max(mm.minHeight, Math.Min(frameworkAvailableSize.Height, mm.maxHeight)); 1799arrangeBounds.Width = Math.Max(mm.minWidth, Math.Min(arrangeBounds.Width, mm.maxWidth)); 1800arrangeBounds.Height = Math.Max(mm.minHeight, Math.Min(arrangeBounds.Height, mm.maxHeight)); 3371mm.maxWidth = Math.Min(MinWidth, maxSizeLogicalUnits.X); 3377mm.maxWidth = Math.Min(MaxWidth, maxSizeLogicalUnits.X); 3393mm.maxHeight = Math.Min(this.MinHeight, maxSizeLogicalUnits.Y); 3399mm.maxHeight = Math.Min(MaxHeight, maxSizeLogicalUnits.Y);
PresentationFramework.Aero (13)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
434desired = new Size(Math.Min(4.0, availableSize.Width), Math.Min(4.0, availableSize.Height));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
255desired = new Size(Math.Min(borderX, availableSize.Width), Math.Min(borderY, availableSize.Height));
Microsoft\Windows\Themes\ScrollChrome.cs (4)
542double height = Math.Min(7.0, bounds.Height); 565double width = Math.Min(7.0, bounds.Width); 729double widthScale = Math.Min(glyphWidth, bounds.Width) / glyphWidth; 730double heightScale = Math.Min(glyphHeight, bounds.Height) / glyphHeight;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
116double maxRadius = Math.Min(centerWidth * 0.5, centerHeight * 0.5); 117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 118cornerRadius.TopRight = Math.Min(cornerRadius.TopRight, maxRadius); 119cornerRadius.BottomLeft = Math.Min(cornerRadius.BottomLeft, maxRadius); 120cornerRadius.BottomRight = Math.Min(cornerRadius.BottomRight, maxRadius);
PresentationFramework.Aero2 (13)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
434desired = new Size(Math.Min(4.0, availableSize.Width), Math.Min(4.0, availableSize.Height));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
255desired = new Size(Math.Min(borderX, availableSize.Width), Math.Min(borderY, availableSize.Height));
Microsoft\Windows\Themes\ScrollChrome.cs (4)
542double height = Math.Min(7.0, bounds.Height); 565double width = Math.Min(7.0, bounds.Width); 729double widthScale = Math.Min(glyphWidth, bounds.Width) / glyphWidth; 730double heightScale = Math.Min(glyphHeight, bounds.Height) / glyphHeight;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
116double maxRadius = Math.Min(centerWidth * 0.5, centerHeight * 0.5); 117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 118cornerRadius.TopRight = Math.Min(cornerRadius.TopRight, maxRadius); 119cornerRadius.BottomLeft = Math.Min(cornerRadius.BottomLeft, maxRadius); 120cornerRadius.BottomRight = Math.Min(cornerRadius.BottomRight, maxRadius);
PresentationFramework.AeroLite (7)
Microsoft\Windows\Themes\ScrollChrome.cs (2)
247double height = Math.Min(7.0, bounds.Height); 262double width = Math.Min(7.0, bounds.Width);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
116double maxRadius = Math.Min(centerWidth * 0.5, centerHeight * 0.5); 117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 118cornerRadius.TopRight = Math.Min(cornerRadius.TopRight, maxRadius); 119cornerRadius.BottomLeft = Math.Min(cornerRadius.BottomLeft, maxRadius); 120cornerRadius.BottomRight = Math.Min(cornerRadius.BottomRight, maxRadius);
PresentationFramework.Classic (7)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
692desired = new Size(Math.Min(borderSize.Width, availableSize.Width), Math.Min(borderSize.Height, availableSize.Height));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
116double maxRadius = Math.Min(centerWidth * 0.5, centerHeight * 0.5); 117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 118cornerRadius.TopRight = Math.Min(cornerRadius.TopRight, maxRadius); 119cornerRadius.BottomLeft = Math.Min(cornerRadius.BottomLeft, maxRadius); 120cornerRadius.BottomRight = Math.Min(cornerRadius.BottomRight, maxRadius);
PresentationFramework.Luna (13)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
349desired = new Size(Math.Min(sideThickness2, availableSize.Width), Math.Min(sideThickness2, availableSize.Height));
Microsoft\Windows\Themes\ScrollChrome.cs (4)
384double height = Math.Min(6.0, bounds.Height); 406double width = Math.Min(6.0, bounds.Width); 588double widthScale = Math.Min(glyphWidth, bounds.Width) / glyphWidth; 589double heightScale = Math.Min(glyphHeight, bounds.Height) / glyphHeight;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (2)
194desired = new Size(Math.Min(11.0 + borderX, availableSize.Width), Math.Min(11.0 + borderY, availableSize.Height));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
116double maxRadius = Math.Min(centerWidth * 0.5, centerHeight * 0.5); 117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 118cornerRadius.TopRight = Math.Min(cornerRadius.TopRight, maxRadius); 119cornerRadius.BottomLeft = Math.Min(cornerRadius.BottomLeft, maxRadius); 120cornerRadius.BottomRight = Math.Min(cornerRadius.BottomRight, maxRadius);
PresentationFramework.Royale (13)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
307desired = new Size(Math.Min(sideThickness2, availableSize.Width), Math.Min(sideThickness2, availableSize.Height));
Microsoft\Windows\Themes\ScrollChrome.cs (4)
344double height = Math.Min(6.0, bounds.Height); 366double width = Math.Min(6.0, bounds.Width); 548double widthScale = Math.Min(glyphWidth, bounds.Width) / glyphWidth; 549double heightScale = Math.Min(glyphHeight, bounds.Height) / glyphHeight;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (2)
194desired = new Size(Math.Min(11.0 + borderX, availableSize.Width), Math.Min(11.0 + borderY, availableSize.Height));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
116double maxRadius = Math.Min(centerWidth * 0.5, centerHeight * 0.5); 117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 118cornerRadius.TopRight = Math.Min(cornerRadius.TopRight, maxRadius); 119cornerRadius.BottomLeft = Math.Min(cornerRadius.BottomLeft, maxRadius); 120cornerRadius.BottomRight = Math.Min(cornerRadius.BottomRight, maxRadius);
ReachFramework (7)
AlphaFlattener\BrushProxy.cs (3)
3746min = Math.Min(min, offset); 4398mint = Math.Min(mint, one); 4406mint = Math.Min(mint, two);
AlphaFlattener\Utility.cs (1)
1695scale = Math.Min(viewport.Width / viewbox.Width, viewport.Height / viewbox.Height);
Serialization\VisualSerializer.cs (3)
476scalex = Math.Min(dstwidth / srcwidth, dstheight / srcheight); 2266WriteAttr("Opacity", Math.Min(Math.Max( opacity, 0.0),1.0)); 2329SetCoordinateFormat(Math.Min(Utility.GetScaleX(mat), Utility.GetScaleY(mat)));
System.Data.Common (1)
System\Data\Common\DoubleStorage.cs (1)
108min = Math.Min(_values[record], min);
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
114long heartBeatInterval = (long)Math.Max(1000, Math.Min(_settings._keepAlivePingDelay.TotalMilliseconds, _settings._keepAlivePingTimeout.TotalMilliseconds) / 4);
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1022public static double Min(double x, double y) => Math.Min(x, y);
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendricalCalculationsHelper.cs (2)
247return Math.CopySign(Math.Min(Math.Abs(equation), TwelveHours), equation); 366return Math.Min(time, timeSunLastAtLongitude - (MeanSpeedOfSun * longitudeErrorDelta));
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.HillClimbing.cs (5)
288double move = Math.Min(1.0, Math.Max(-1.0, ratio.Real)); 293move *= Math.Min(1.0, Math.Max(0.0, confidence)); 302move = Math.Min(move, _maxChangePerSample); 332_currentControlSetting = Math.Min(maxThreads - newThreadWaveMagnitude, _currentControlSetting); 377newSampleInterval = (int)(0.5 + _currentSampleMs * (10.0 * Math.Min(-ratio.Real, 1.0)));
src\libraries\System.Private.CoreLib\src\System\Threading\ProcessorIdCache.cs (2)
94minID = Math.Min(minID, (double)t / iters); 111minTLS = Math.Min(minTLS, (double)t / iters);
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
318_tokenCount = Math.Min(_options.TokenLimit, _tokenCount + add);
System.Windows.Controls.Ribbon (16)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (1)
80width = Math.Min(tabGroupHeader.TabsDesiredWidth, remainingSpace);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (4)
477stackDesiredSize.Width = Math.Min(stackDesiredSize.Width, constraint.Width); 478stackDesiredSize.Height = Math.Min(stackDesiredSize.Height, constraint.Height); 497logicalVisibleSpace = DoubleUtil.LessThanOrClose((viewportOffsetY + logicalVisibleSpace) - stackDesiredSize.Height, 0.0) ? 0.0 : Math.Min((viewportOffsetY + logicalVisibleSpace) - stackDesiredSize.Height, constraint.Height); 501offset.X = Math.Max(0, Math.Min(offset.X, extent.Width - viewport.Width));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (3)
143maxStarColumnWidth = Math.Max(maxStarColumnWidth, Math.Min(child.MaxWidth, child.DesiredSize.Width)); 225desiredHeight = Math.Min(Math.Max(desiredHeight, columnHeight), availableSize.Height); 260desiredHeight = Math.Min(Math.Max(desiredHeight, columnHeight), availableSize.Height);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (1)
487double targetValue = Math.Min(basePerStar * starInfo.RequestedStarWeight, starInfo.RequestedStarMaxWidth);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonScrollButtonVisibilityConverter.cs (1)
96double percent = Math.Min(100.0, Math.Max(0.0, (offset * 100.0 / (extent - viewport))));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
126double availableExtraWidth = Math.Min(desiredExtraPaddingPerTab, availableExtraWidthPerTab);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (5)
81startContextualTabX = Math.Min(CalculateContextualTabGroupStartX(firstContextualTab), availableSize.Width); 87endContextualTabX = Math.Min(CalculateContextualTabGroupEndX(lastContextualTab), availableSize.Width); 165desiredSize.Width = Math.Min(desiredSize.Width, availableSize.Width); // Prevent clipping 190startContextualTabX = Math.Min(CalculateContextualTabGroupStartX(firstContextualTab), finalSize.Width); 193endContextualTabX = Math.Min(startContextualTabX + tabGroups.DesiredSize.Width, finalSize.Width);
System.Windows.Input.Manipulations (2)
System\Windows\Input\Manipulations\ManipulationSequence.cs (2)
959torqueFactor = (float)Math.Min(1.0, Math.Pow(oldVector.Length / settings.Pivot.Radius, singleManipulatorTorqueFactor)); 1344smoothingLevel = Math.Max(0, Math.Min(1, smoothingLevel));
WindowsFormsIntegration (4)
System\Windows\Integration\WindowsFormsHost.cs (4)
254returnSize.Width = Math.Min(returnSize.Width, constraint.Width); 255returnSize.Height = Math.Min(returnSize.Height, constraint.Height); 289returnSize.Width = Math.Min(returnSize.Width, finalSize.Width); 290returnSize.Height = Math.Min(returnSize.Height, finalSize.Height);