426 references to Min
Aspire.Dashboard (1)
ResourceService\DashboardClient.cs (1)
312return TimeSpan.FromSeconds(Math.Min(Math.Pow(2, errorCount - 1), maxSeconds));
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
596int newSize = (int)Math.Min(((double)internalBuffer.Length) * 2, _maxBufferSize);
Microsoft.Build (1)
Evaluation\Expander\WellKnownFunctions.cs (1)
827returnVal = Math.Min(arg0, arg1);
Microsoft.CodeAnalysis.EditorFeatures (1)
InlineRename\UI\Adornment\RenameFlyout.xaml.cs (1)
148MinWidth = Math.Min(DefaultMinWidth, _textView.ViewportWidth);
Microsoft.Data.Analysis (4)
PrimitiveDataFrameColumnComputations.cs (4)
1811ret = (double)(Math.Min(readOnlySpan[i], ret)); 1855ret = (double)Math.Min(span[(int)row], ret); 2051value = (double)(Math.Min(readOnlySpan[i], value)); 2078value = (double)(Math.Min(readOnlySpan[(int)row], value));
Microsoft.Extensions.Caching.StackExchangeRedis (1)
RedisCache.cs (1)
580return (long)Math.Min(
Microsoft.Extensions.Diagnostics.ResourceMonitoring (8)
Linux\LinuxUtilizationProvider.cs (2)
229double percentage = Math.Min(One, (double)deltaCgroup / deltaHost); 262double memoryPercentage = Math.Min(One, (double)memoryUsed / _memoryLimit);
ResourceUtilization.cs (2)
68CpuUsedPercentage = Math.Min(Hundred, Throw.IfLessThan(cpuUsedPercentage / guaranteedCpuUnits, 0.0)); 71MemoryUsedPercentage = Math.Min(Hundred, (double)MemoryUsedInBytes / systemResources.GuaranteedMemoryInBytes * Hundred);
Windows\WindowsContainerSnapshotProvider.cs (2)
204_memoryPercentage = Math.Min(_metricValueMultiplier, memoryUsage / _memoryLimit * _metricValueMultiplier); 239_cpuPercentage = Math.Min(_metricValueMultiplier, usageTickDelta / timeTickDelta * _metricValueMultiplier);
Windows\WindowsSnapshotProvider.cs (2)
143_memoryPercentage = Math.Min(_metricValueMultiplier, currentMemoryUsage / _totalMemory * _metricValueMultiplier); 176_cpuPercentage = Math.Min(_metricValueMultiplier, usageTickDelta / (double)timeTickDelta * _metricValueMultiplier);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
ResourceUtilizationTests.cs (1)
23Assert.Equal(Math.Min(1.0, (double)MemoryUsed / MemoryTotal) * 100.0, utilization.MemoryUsedPercentage);
Microsoft.Maui (14)
Animations\Animation.cs (1)
217 var percent = Math.Min(start / Duration, 1);
Layouts\GridLayoutManager.cs (4)
726 var cellRequiredHeight = Math.Min(_gridHeightConstraint, _childrenToLayOut[cell.ViewIndex].DesiredSize.Height); 750 var cellRequiredWidth = Math.Min(_gridWidthConstraint, _childrenToLayOut[cell.ViewIndex].DesiredSize.Width); 872 def.Size = Math.Min(maxSize, def.Size); 873 def.MinimumSize = Math.Min(maxSize, def.MinimumSize);
Layouts\LayoutExtensions.cs (4)
46 consumedWidth = Math.Min(bounds.Width, view.MaximumWidth); 60 consumedHeight = Math.Min(bounds.Height, view.MaximumHeight); 84 desiredWidth = IsExplicitSet(view.Width) ? desiredWidth : Math.Min(bounds.Width, view.MaximumWidth); 121 desiredHeight = IsExplicitSet(view.Height) ? desiredHeight : Math.Min(bounds.Height, view.MaximumHeight);
Layouts\LayoutManager.cs (1)
33 return Math.Min(length, externalConstraint);
VisualDiagnostics\AdornerModel.cs (4)
49 rc.Left = Math.Min(rect.Left - margin.Left, rect.Left); 60 rc.Left = Math.Min(rect.Right, rect.Right + margin.Right); 73 rc.Top = Math.Min(rect.Top - margin.Top, rect.Top); 84 rc.Top = Math.Min(rect.Bottom + margin.Bottom, rect.Bottom);
Microsoft.Maui.Controls (32)
Animation.cs (1)
90 double val = Math.Max(0.0f, Math.Min(1.0f, (f - animation.StartDelay) / (animation.Duration)));
ImageElement.cs (5)
66 height = Math.Min(desiredHeight, heightConstraint); 70 width = Math.Min(desiredWidth, widthConstraint); 82 width = Math.Min(desiredWidth, widthConstraint); 86 height = Math.Min(desiredHeight, heightConstraint); 94 width = Math.Min(desiredWidth, widthConstraint);
Items\ItemsView.cs (2)
202 var maxWidth = Math.Min(scaled.Width, widthConstraint); 203 var maxHeight = Math.Min(scaled.Height, heightConstraint);
LegacyLayouts\GridCalc.cs (6)
317 double contractionNeeded = Math.Min(contractionSpace, Math.Max(currentSize.Width - targetWidth, 0)); 352 double contractionNeeded = Math.Min(contractionSpace, Math.Max(currentSize.Height - targetHeight, 0)); 394 starColumnWidth = Math.Min(column.ActualWidth, starColumnWidth); 411 double contractionNeeded = Math.Min(contractionSpace, Math.Max(request.Width - targetWidth, 0)); 457 starRowHeight = Math.Min(row.ActualHeight, starRowHeight); 473 double contractionNeeded = Math.Min(contractionSpace, Math.Max(request.Height - targetHeight, 0));
LegacyLayouts\RelativeLayout.cs (2)
225 boundsRectangle.Left = Math.Min(boundsRectangle.Left, bounds.Left); 226 boundsRectangle.Top = Math.Min(boundsRectangle.Top, bounds.Top);
ListView\ListView.cs (1)
428 double width = Math.Min(scaled.Width, scaled.Height);
ScrollView\ScrollView.cs (2)
320 contentRequest.Minimum = new Size(Math.Min(40, contentRequest.Minimum.Width), Math.Min(40, contentRequest.Minimum.Height));
Shapes\Matrix.cs (6)
744 rect.X = Math.Min(Math.Min(point0.X, point1.X), Math.Min(point2.X, point3.X)); 745 rect.Y = Math.Min(Math.Min(point0.Y, point1.Y), Math.Min(point2.Y, point3.Y));
Shapes\Shape.cs (1)
419 double minScale = Math.Min(scaleX, scaleY);
TableView\TableView.cs (1)
139 double width = Math.Min(scaled.Width, scaled.Height);
Tweener.cs (1)
124 Value = Math.Min(1.0f, ms / (double)Length);
VisualElement\VisualElement.cs (4)
1169 widthConstraint = Math.Min(widthConstraint, widthRequest); 1171 heightConstraint = Math.Min(heightConstraint, heightRequest); 1200 minimum.Height = Math.Min(request.Height, minimum.Height); 1201 minimum.Width = Math.Min(request.Width, minimum.Width);
Microsoft.Maui.Graphics (4)
Rect.cs (4)
107 return FromLTRB(Math.Min(r1.Left, r2.Left), Math.Min(r1.Top, r2.Top), Math.Max(r1.Right, r2.Right), Math.Max(r1.Bottom, r2.Bottom)); 119 double width = Math.Min(r1.Right, r2.Right) - x; 120 double height = Math.Min(r1.Bottom, r2.Bottom) - y;
Microsoft.Maui.Graphics.Skia (1)
SkiaTextLayout.cs (1)
112 linesToDraw = (int)Math.Min(maxLines, lines.Count);
Microsoft.Maui.Maps (10)
Primitives\MapSpan.cs (10)
14 LatitudeDegrees = Math.Min(Math.Max(latitudeDegrees, MinimumRangeDegrees), 90.0); 15 LongitudeDegrees = Math.Min(Math.Max(longitudeDegrees, MinimumRangeDegrees), 180.0); 30 return new Distance(1000 * Math.Min(latKm, longKm) / 2); 36 north = Math.Min(Math.Max(north, 0), 90); 37 south = Math.Max(Math.Min(south, 0), -90); 38 double lat = Math.Max(Math.Min(Center.Latitude, north), south); 39 double maxDLat = Math.Min(north - lat, -south + lat) * 2; 40 return new MapSpan(new Location(lat, Center.Longitude), Math.Min(LatitudeDegrees, maxDLat), LongitudeDegrees); 80 double maxDLat = Math.Min(90 - Center.Latitude, 90 + Center.Latitude) * 2; 81 return new MapSpan(Center, Math.Min(LatitudeDegrees / zoomFactor, maxDLat), LongitudeDegrees / zoomFactor);
Microsoft.Maui.Resizetizer (1)
SkiaSharpTools.cs (1)
255 var nominalRatio = Math.Min(
Microsoft.ML.AutoML (2)
Tuner\Flow2.cs (1)
112_step = Math.Min(_step, _stepUpperBound);
Utils\ArrayMath.cs (1)
42return xArray.Select(x => Math.Min(Math.Max(x, min), max)).ToArray();
Microsoft.ML.AutoML.Tests (2)
TunerTests.cs (2)
324bestLoss = Math.Min(bestLoss, loss); 370bestMetric = Math.Min(bestMetric, metric);
Microsoft.ML.Core (2)
Utilities\MathUtils.cs (1)
390return Math.Max(0, Math.Min(result, 1));
Utilities\Stats.cs (1)
271double pin = Math.Min(p, 1 - p);
Microsoft.ML.FastTree (2)
SumupPerformanceCommand.cs (1)
138int numZeros = (int)Math.Min(Math.Floor(Math.Log(r) / denom), remaining);
Training\EnsembleCompression\LassoBasedEnsembleCompressor.cs (1)
176int maxAllowedFeaturesAlongPath = (int)Math.Min(maxAllowedFeaturesPerModel * 1.2, _numFeatures);
Microsoft.ML.Mkl.Components (1)
OlsLinearRegression.cs (1)
149private static Double ProbClamp(Double p) => Math.Max(0, Math.Min(p, 1));
Microsoft.ML.Sweeper (2)
Algorithms\KdoSweeper.cs (2)
265double eps = Math.Min(Math.Max(child[index], epsCutoff), 1 - epsCutoff); 337weights[i] = _args.Simple ? Math.Pow(weights[i], Math.Min(Math.Sqrt(n), 100)) : Math.Pow(weights[i], _args.WeightRescalingPower * currentMaxPerf);
Microsoft.ML.TimeSeries (7)
AdaptiveSingularSpectrumSequenceModeler.cs (3)
1021maxTrendMagnitude = Math.Min(1, _maxTrendRatio); 1042maxTrendMagnitude = Math.Min(maxTrendMagnitude, _maxTrendRatio); 1046var smallTrendMagnitude = Math.Min(maxTrendMagnitude, (maxTrendMagnitude + 1) / 2);
SequentialAnomalyDetectionTransformBase.cs (1)
574result.Values[2] = Math.Min(result.Values[2], 1 - result.Values[2]);
SrCnnEntireAnomalyDetector.cs (3)
507_minimumOriginValue = Math.Min(_minimumOriginValue, value); 624score = Math.Min(score, _maximumScore); 882return Math.Max(Math.Min(expectedValue, value + boundMargin), value - boundMargin);
Microsoft.ML.Transforms (1)
Expression\BuiltinFunctions.cs (1)
284FunctionProviderUtils.Fn<R8, R8, R8>(Math.Min));
Microsoft.VisualStudio.LanguageServices (1)
DocumentOutline\DocumentOutlineView.xaml.cs (1)
342var croppedRenderWidth = Math.Min(item.RenderSize.Width, SymbolTree.RenderSize.Width / 4);
PresentationCore (37)
MS\Internal\Ink\CuspData.cs (1)
471rMin = Math.Min(rMin, a);
MS\Internal\Ink\EllipticalNodeOperations.cs (2)
727findex = Math.Min(s1, s2); 754findex = Math.Abs(Math.Min(s1, s2) - 0d) < Math.Abs(Math.Max(s1, s2) - 1d) ? 0d : 1d;
MS\Internal\Ink\ErasingStroke.cs (1)
182Math.Min(lastFragment.BeginFIndex, fragment.BeginFIndex),
MS\Internal\Ink\Lasso.cs (2)
150DoubleUtil.GreaterThanOrClose(point.X, Math.Min(prevLassoPoint.X, lassoPoint.X)) && 165else if (DoubleUtil.GreaterThanOrClose(point.X, Math.Min(prevLassoPoint.X, lassoPoint.X)))
MS\Internal\Ink\StrokeRenderer.cs (6)
106if ((Math.Min(prevArea, currArea) / Math.Max(prevArea, currArea)) <= 0.70d) 249percentIntersect += Math.Min(4.99999d, ((maxExtent / 20d) * 5d)); 527if ((Math.Min(prevArea, currArea) / Math.Max(prevArea, currArea)) <= 0.90d) 834double intersectWidth = Math.Max((double)(Math.Min(rect1.Right, rect2.Right) - intersectLeft), (double)0); 835double intersectHeight = Math.Max((double)(Math.Min(rect1.Bottom, rect2.Bottom) - intersectTop), (double)0); 845double minArea = Math.Min(rect1Area, rect2Area);
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (8)
495if (!((Math.Max(visEdgeStart.X, visEdgeEnd.X) < Math.Min(uv1.X, uv2.X)) || 496(Math.Min(visEdgeStart.X, visEdgeEnd.X) > Math.Max(uv1.X, uv2.X)) || 497(Math.Max(visEdgeStart.Y, visEdgeEnd.Y) < Math.Min(uv1.Y, uv2.Y)) || 498(Math.Min(visEdgeStart.Y, visEdgeEnd.Y) > Math.Max(uv1.Y, uv2.Y)))) 913if (!((Math.Max(visEdgeStart.X, visEdgeEnd.X) < Math.Min(uv1.X, uv2.X)) || 914(Math.Min(visEdgeStart.X, visEdgeEnd.X) > Math.Max(uv1.X, uv2.X)) || 915(Math.Max(visEdgeStart.Y, visEdgeEnd.Y) < Math.Min(uv1.Y, uv2.Y)) || 916(Math.Min(visEdgeStart.Y, visEdgeEnd.Y) > Math.Max(uv1.Y, uv2.Y))))
System\Windows\Ink\Stroke.cs (1)
230double min = Math.Min(shapeBoundingBox.Width, shapeBoundingBox.Height);
System\Windows\Media\Animation\CircleEase.cs (1)
15normalizedTime = Math.Max(0.0, Math.Min(1.0, normalizedTime));
System\Windows\Media\FormattedText.cs (3)
1765accBlackBoxLeft = Math.Min(accBlackBoxLeft, blackBoxLeft); 1768accBlackBoxTop = Math.Min(accBlackBoxTop, blackBoxTop); 1776lineStartOfLongestLine = Math.Min(lineStartOfLongestLine, currentLine.Start);
System\Windows\Media\GlyphRun.cs (1)
1389double inflation = Math.Min(_renderingEmSize / 7.0, 1.0);
System\Windows\Media\RectangleGeometry.cs (2)
464radiusX = Math.Min(rect.Width * (1.0 / 2.0), Math.Abs(radiusX)); 465radiusY = Math.Min(rect.Height * (1.0 / 2.0), Math.Abs(radiusY));
System\Windows\Media3D\Rect3D.cs (9)
76_x = Math.Min(point1._x, point2._x); 77_y = Math.Min(point1._y, point2._y); 78_z = Math.Min(point1._z, point2._z); 420_sizeX = Math.Min(_x + _sizeX, rect._x + rect._sizeX) - x; 421_sizeY = Math.Min(_y + _sizeY, rect._y + rect._sizeY) - y; 422_sizeZ = Math.Min(_z + _sizeZ, rect._z + rect._sizeZ) - z; 455double x = Math.Min(_x, rect._x); 456double y = Math.Min(_y, rect._y); 457double z = Math.Min(_z, rect._z);
PresentationFramework (175)
MS\Internal\Documents\DocumentGrid.cs (5)
576double clippedHorizontalOffset = Math.Min(_horizontalOffset, ExtentWidth - ViewportWidth); 619double clippedVerticalOffset = Math.Min(_verticalOffset, ExtentHeight - ViewportHeight); 2357newScale = Math.Min(newScale, DocumentViewerConstants.MaximumScale); 2426scaleFactor = Math.Min(compensatedViewportWidth / rowWidth, compensatedViewportHeight / rowHeight); 2455scaleFactor = Math.Min(compensatedViewportWidth / rowWidth,
MS\Internal\Documents\FlowDocumentView.cs (4)
81desiredSize.Width = Math.Min(constraint.Width, _formatter.DocumentPage.Size.Width); 82desiredSize.Height = Math.Min(constraint.Height, _formatter.DocumentPage.Size.Height); 141Math.Max(0, Math.Min(_scrollData.ExtentWidth - _scrollData.ViewportWidth, _scrollData.HorizontalOffset)), 142Math.Max(0, Math.Min(_scrollData.ExtentHeight - _scrollData.ViewportHeight, _scrollData.VerticalOffset)));
MS\Internal\Documents\MultiPageTextView.cs (2)
1097horz = Math.Min(Math.Abs(point.X - textViewBounds.Left), Math.Abs(point.X - textViewBounds.Right)); 1105vert = Math.Min(Math.Abs(point.Y - textViewBounds.Top), Math.Abs(point.Y - textViewBounds.Bottom));
MS\Internal\Documents\ScrollData.cs (2)
132offset = Math.Max(0, Math.Min(_extent.Width - _viewport.Width, offset)); 151offset = Math.Max(0, Math.Min(_extent.Height - _viewport.Height, offset));
MS\Internal\Documents\TextBoxView.cs (4)
452desiredSize.Width = Math.Min(constraint.Width, desiredSize.Width); 453desiredSize.Height = Math.Min(constraint.Height, desiredSize.Height); 1742Math.Max(0, Math.Min(_scrollData.ExtentWidth - _scrollData.ViewportWidth, _scrollData.HorizontalOffset)), 1743Math.Max(0, Math.Min(_scrollData.ExtentHeight - _scrollData.ViewportHeight, _scrollData.VerticalOffset)));
MS\Internal\Ink\LassoHelper.cs (2)
228&& DoubleUtil.GreaterThanOrClose(point.X, Math.Min(prevLassoPoint.X, lassoPoint.X)) 249else if (DoubleUtil.GreaterThanOrClose(point.X, Math.Min(prevLassoPoint.X, lassoPoint.X)))
MS\Internal\Ink\PenCursorManager.cs (1)
342double maxLength = Math.Min(SystemParameters.PrimaryScreenWidth / 2, SystemParameters.PrimaryScreenHeight / 2);
MS\Internal\PtsHost\FigureHelper.cs (3)
174value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight)); 179value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom)); 247width = Math.Min(width, pageWidth);
MS\Internal\PtsHost\FloaterParagraph.cs (1)
872return Math.Min(desiredSize, spaceAvailable);
MS\Internal\PtsHost\PtsHelper.cs (1)
879columnWidth = Math.Max(1, Math.Min(columnWidth, pageWidth));
MS\Internal\Text\DynamicPropertyReader.cs (1)
210return Math.Max(TextDpi.MinWidth, Math.Min(TextDpi.MaxWidth, lineHeight));
System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (3)
208return Math.Min(100.0, (double)(owner.ViewportWidth * 100.0 / owner.ExtentWidth)); 222return Math.Min(100.0, (double)(owner.ViewportHeight * 100.0 / owner.ExtentHeight)); 258return Math.Min(100.0, (double)(viewport * 100.0 / extent));
System\Windows\Controls\DataGridCellsPanel.cs (1)
1893childMeasureWidth = Math.Min(childMeasureWidth, column.MaxWidth);
System\Windows\Controls\DataGridColumnCollection.cs (10)
1267double displayValue = Math.Min(width.DesiredValue, maxWidth); 1359column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, Math.Min(width.DesiredValue, maxWidth))); 1778double maxColumnResizeWidth = expandBeyondDesiredWidth ? column.MaxWidth : Math.Min(width.DesiredValue, column.MaxWidth); 1913column.UpdateWidthForStarColumn(Math.Min(columnDesiredWidth, column.MaxWidth), columnDesiredWidth, columnDesiredWidth / perStarWidth); 2000double usedStarSpace = ComputeStarColumnWidths(Math.Min(expectedStarSpace, sumOfStarMaxWidths)); 2071double lagWidth = Math.Min(width.DesiredValue, columnMaxWidth) - width.DisplayValue; 2102if (DoubleUtil.LessThan(width.DisplayValue, Math.Min(width.DesiredValue, column.MaxWidth))) 2130giveAwayWidth -= Math.Min(contributingSpace, giveAwayWidth); 2137giveAwayWidth = Math.Min(giveAwayWidth, Math.Max(0d, totalSpace - usedSpace)); 2184return Math.Min(usedSpace - totalAvailableWidth, takeAwayWidth);
System\Windows\Controls\DataGridHelper.cs (1)
716value = Math.Min(value, maxValue);
System\Windows\Controls\FlowDocumentReader.cs (1)
710SetCurrentValueInternal(ZoomProperty, Math.Min(Zoom + ZoomIncrement, MaxZoom));
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
623Zoom = Math.Min(Zoom + ZoomIncrement, MaxZoom); 701SetCurrentValueInternal(ZoomProperty, Math.Min(Zoom + ZoomIncrement, MaxZoom));
System\Windows\Controls\Grid.cs (19)
1089userMinSize = Math.Max(userMinSize, Math.Min(userSize, userMaxSize)); 1113definitions[i].MeasureSize = Math.Max(userMinSize, Math.Min(userSize, userMaxSize)); 1213DefinitionsU[PrivateCells[i].ColumnIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Width, DefinitionsU[PrivateCells[i].ColumnIndex].UserMaxSize)); 1230DefinitionsV[PrivateCells[i].RowIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Height, DefinitionsV[PrivateCells[i].RowIndex].UserMaxSize)); 1503double newMinSize = Math.Min(sizeToDistribute / (count - i), tempDefinitions[i].PreferredSize); 1533tempDefinitions[i].UpdateMinSize(Math.Min(newMinSize, tempDefinitions[i].SizeCache)); 1544tempDefinitions[i].UpdateMinSize(Math.Min(newMinSize, tempDefinitions[i].SizeCache)); 1655starValue = Math.Min(starValue, c_starClip); 1660maxSize = Math.Min(maxSize, c_starClip); 1699resolvedSize = Math.Min(userSize, tempDefinitions[i].UserMaxSize); 2005resolvedSize = Math.Min(resolvedSize, def.UserMaxSize); 2095starValue = Math.Min(starValue, c_starClip); 2100maxSize = Math.Min(maxSize, c_starClip); 2140definitions[i].SizeCache = Math.Max(definitions[i].MinSizeForArrange, Math.Min(userSize, userMaxSize)); 2186resolvedSize = Math.Min(userSize, definitions[definitionIndices[i]].UserMaxSize); 2213final = Math.Min(final, definitions[definitionIndex].SizeCache); 2220final = Math.Min(final, definitions[definitionIndex].SizeCache); 2426def.SizeCache = Math.Max(def.MinSizeForArrange, Math.Min(userSize, userMaxSize)); 2630resolvedSize = Math.Min(resolvedSize, def.UserMaxSize);
System\Windows\Controls\GridSplitter.cs (6)
503_resizeData.SplitterLength = Math.Min(ActualWidth, ActualHeight); 663_resizeData.Adorner.OffsetX = Math.Min(Math.Max(horizontalChange, _resizeData.MinChange), _resizeData.MaxChange); 667_resizeData.Adorner.OffsetY = Math.Min(Math.Max(verticalChange, _resizeData.MinChange), _resizeData.MaxChange); 811minDelta = -Math.Min(definition1Len - definition1Min, definition2Max - definition2Len); 812maxDelta = Math.Min(definition1Max - definition1Len, definition2Len - definition2Min); 920delta = Math.Min(Math.Max(delta, min), max);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
280childConstraintWidth = Math.Min(childConstraintWidth, column.DesiredWidth); 288childConstraintWidth = Math.Min(childConstraintWidth, column.Width); 351double childArrangeWidth = Math.Min(remainingWidth, ((column.State == ColumnMeasureState.SpecificWidth) ? column.Width : column.DesiredWidth));
System\Windows\Controls\GridViewRowPresenter.cs (3)
172childConstraintWidth = Math.Min(childConstraintWidth, column.DesiredWidth); 180childConstraintWidth = Math.Min(childConstraintWidth, column.Width); 220double childArrangeWidth = Math.Min(remainingWidth, ((column.State == ColumnMeasureState.SpecificWidth) ? column.Width : column.DesiredWidth));
System\Windows\Controls\InkPresenter.cs (2)
203availableSize = new Size(Math.Min(arrangeSize.Width, _constraintSize.Width), 204Math.Min(arrangeSize.Height, _constraintSize.Height));
System\Windows\Controls\MenuScrollingVisibilityConverter.cs (1)
83double percent = Math.Min(100.0, Math.Max(0.0, (verticalOffset * 100.0 / (extentHeight - viewportHeight))));
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
128desiredSize.Width = Math.Min(availableSize.Width, desiredSize.Width); 903columnEstimatedWidth = Math.Min(columnEstimatedWidth, column.MaxWidth);
System\Windows\Controls\Primitives\DocumentPageView.cs (2)
952pageVisualRect.Width = Math.Min(pageVisualRect.Width, maxWidth); 953pageVisualRect.Height = Math.Min(pageVisualRect.Height, maxHeight);
System\Windows\Controls\Primitives\Popup.cs (5)
2634desiredSize.Width = Math.Min(desiredSize.Width, screenBounds.Width); 2635desiredSize.Width = Math.Min(desiredSize.Width, limitSize.Width); 2639desiredSize.Height = Math.Min(desiredSize.Height, screenBounds.Height); 2640desiredSize.Height = Math.Min(desiredSize.Height, maxHeight); 2641desiredSize.Height = Math.Min(desiredSize.Height, limitSize.Height);
System\Windows\Controls\Primitives\PopupRoot.cs (2)
226return new Size(Math.Min(restrictedSize.Width, restricted2DDesiredSize.Width), 227Math.Min(restrictedSize.Height, restricted2DDesiredSize.Height));
System\Windows\Controls\Primitives\ScrollBar.cs (3)
408newValue = Math.Min(Math.Max(newValue, Minimum), Maximum); 549double newValue = Math.Min(Value + SmallChange, Maximum); 567double newValue = Math.Min(Value + LargeChange, Maximum);
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
434desiredSize.Width = Math.Min(constraint.Width, desiredSize.Width); 435desiredSize.Height = Math.Min(constraint.Height, desiredSize.Height);
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (2)
111_wrapWidth = Math.Min(_wrapWidth, constraint.Width); 155_wrapWidth = Math.Min(_wrapWidth, arrangeBounds.Width);
System\Windows\Controls\Primitives\Track.cs (3)
70return Math.Max(Minimum, Math.Min(Maximum, val)); 556double offset = Math.Min(range, Value - min); 595double offset = Math.Min(range, Value - min);
System\Windows\Controls\ScrollViewer.cs (1)
1807double newUnused = Math.Min(unused + delta, 0);
System\Windows\Controls\SinglePageViewer.cs (1)
743SetCurrentValueInternal(ZoomProperty, Math.Min(Zoom + ZoomIncrement, MaxZoom));
System\Windows\Controls\Slider.cs (3)
1185next = Math.Min(Maximum, previous + TickFrequency); 1205double next = SnapToTick(Math.Max(this.Minimum, Math.Min(this.Maximum, value + direction))); 1401this.SetCurrentValueInternal(ValueProperty, Math.Max(this.Minimum, Math.Min(this.Maximum, snappedValue)));
System\Windows\Controls\Stack.cs (5)
658offset.Y = Math.Max(0, Math.Min(offset.Y, extent.Height - viewport.Height)); 666offset.X = Math.Max(0, Math.Min(offset.X, extent.Width - viewport.Width)); 671stackDesiredSize.Width = Math.Min(stackDesiredSize.Width, constraint.Width); 672stackDesiredSize.Height = Math.Min(stackDesiredSize.Height, constraint.Height); 892targetRectSize = Math.Max(Math.Min(targetRectSize + targetRectOffset, minPhysicalOffset + viewportSize) - left, 0);
System\Windows\Controls\StickyNote.cs (2)
1111horizontalChange = Math.Min(Math.Max(minBoundary.X, horizontalChange), maxBoundary.X); 1112verticalChange = Math.Min(Math.Max(minBoundary.Y, verticalChange), maxBoundary.Y);
System\Windows\Controls\VirtualizingStackPanel.cs (14)
2319double factor = Math.Min(1.0, isHorizontal ? viewport.Width / extendedViewport.Width : viewport.Height / extendedViewport.Height); 6704childViewport.X = Math.Min(childViewport.X, 0) - 6749childViewport.Y = Math.Min(childViewport.Y, 0) - 7211pixelSizeInViewport = Math.Min(childViewport.Width, childPixelSize.Width - pixelSizeBeforeViewport); 7266double childPixelHeightInViewport = Math.Min(childViewport.Height, childPixelSize.Height - Math.Max(childViewport.Y, 0.0)); 7303pixelSizeInViewport = Math.Min(childViewport.Height, childPixelSize.Height - pixelSizeBeforeViewport); 7358double childPixelWidthInViewport = Math.Min(childViewport.Width, childPixelSize.Width - Math.Max(childViewport.X, 0.0)); 9698Math.Min(stackPixelSize.Width, constraint.Width) : constraint.Width; 9703Math.Min(stackPixelSize.Height, constraint.Height) : constraint.Height; 10547Math.Min(stackPixelSize.Width, constraint.Width) : constraint.Width; 10552Math.Min(stackPixelSize.Height, constraint.Height) : constraint.Height; 10648lastPageSafeOffset = lastPageSafeOffset.HasValue ? Math.Min(computedViewportOffset.X, (double)lastPageSafeOffset) : computedViewportOffset.X; 10779lastPageSafeOffset = lastPageSafeOffset.HasValue ? Math.Min(computedViewportOffset.Y, (double)lastPageSafeOffset) : computedViewportOffset.Y; 11166double visibleEnd = Math.Max(Math.Min(end, viewportSize), visibleStart);
System\windows\Documents\CaretElement.cs (2)
412scroller.ScrollToVerticalOffset(Math.Min(scroller.ExtentHeight, scroller.VerticalOffset + deltaToScroll + scrollerHeight / 4)); 429scroller.ScrollToHorizontalOffset(Math.Min(scroller.ExtentWidth, scroller.HorizontalOffset + deltaToScroll + scrollerWidth / 4));
System\Windows\Documents\ImmComposition.cs (2)
650milPointTopLeft = new Point(Math.Min(rectStart.Left, rectEnd.Left), Math.Min(rectStart.Top, rectEnd.Top));
System\Windows\Documents\TextRangeEdit.cs (1)
2368retValue = Math.Min(retValue, _upperBound);
System\Windows\Documents\TextRangeEditTables.cs (2)
1735xPosAdorner = Math.Min(xPosAdorner, _columnRect.Right + this.RightDragMax); 1747dx = Math.Min(dx, this.RightDragMax);
System\Windows\Documents\TextStore.cs (2)
985milPointTopLeft = new Point(Math.Min(rectPrev.Left, rectCur.Left), Math.Min(rectPrev.Top, rectCur.Top));
System\Windows\FrameworkElement.cs (19)
4045maxHeight = Math.Max(Math.Min(height, maxHeight), minHeight); 4048minHeight = Math.Max(Math.Min(maxHeight, height), minHeight); 4055maxWidth = Math.Max(Math.Min(width, maxWidth), minWidth); 4058minWidth = Math.Max(Math.Min(maxWidth, width), minWidth); 4181h = Math.Min(0.5*Math.Abs(xConstr/c), yCoverD); 4192w = Math.Min( 0.5*Math.Abs(yConstr/b), xCoverA); 4221h = Math.Min(0.5*Math.Abs(yConstr/d), xCoverC); 4232w = Math.Min( 0.5*Math.Abs(xConstr/a), yCoverB); 4249w = Math.Min(yCoverB, xCoverA) * 0.5; 4250h = Math.Min(xCoverC, yCoverD) * 0.5; 4267Double expandFactor = Math.Min(xConstr / childBoundsTr.Width, 4375frameworkAvailableSize.Width = Math.Max(mm.minWidth, Math.Min(frameworkAvailableSize.Width, mm.maxWidth)); 4376frameworkAvailableSize.Height = Math.Max(mm.minHeight, Math.Min(frameworkAvailableSize.Height, mm.maxHeight)); 4714Size clippedInkSize = new Size(Math.Min(innerInkSize.Width, mm.maxWidth), 4715Math.Min(innerInkSize.Height, mm.maxHeight)); 4899inkSize.Width = Math.Min(inkSize.Width, mm.maxWidth); 4900inkSize.Height = Math.Min(inkSize.Height, mm.maxHeight); 5236inkSize.Width = Math.Min(inkSize.Width, mm.maxWidth); 5237inkSize.Height = Math.Min(inkSize.Height, mm.maxHeight);
System\Windows\Input\KeyboardNavigation.cs (4)
2506rect.Height = Math.Min(Math.Max(before, 0.0d), rect.Height); 2510double height = Math.Min(Math.Max(after, 0.0d), rect.Height); 2657startRange = Math.Min(startRange, _horizontalBaseline); 2678startRange = Math.Min(startRange, _verticalBaseline);
System\Windows\Interop\HwndHost.cs (2)
696desiredSize.Width = Math.Min(_desiredSize.Width, constraint.Width); 697desiredSize.Height = Math.Min(_desiredSize.Height, constraint.Height);
System\Windows\Shapes\Ellipse.cs (1)
88width = Math.Min(width, height);
System\Windows\Shapes\Rectangle.cs (1)
141width = Math.Min(width, height);
System\Windows\Shell\TaskbarItemInfo.cs (1)
106progressValue = Math.Min(1, progressValue);
System\Windows\Shell\WindowChromeWorker.cs (5)
814double shortestDimension = Math.Min(windowSize.Width, windowSize.Height); 817topLeftRadius = Math.Min(topLeftRadius, shortestDimension / 2); 833topRightRadius = Math.Min(topRightRadius, shortestDimension / 2); 841bottomLeftRadius = Math.Min(bottomLeftRadius, shortestDimension / 2); 849bottomRightRadius = Math.Min(bottomRightRadius, shortestDimension / 2);
System\Windows\Window.cs (8)
1813frameworkAvailableSize.Width = Math.Max(mm.minWidth, Math.Min(frameworkAvailableSize.Width, mm.maxWidth)); 1814frameworkAvailableSize.Height = Math.Max(mm.minHeight, Math.Min(frameworkAvailableSize.Height, mm.maxHeight)); 1843arrangeBounds.Width = Math.Max(mm.minWidth, Math.Min(arrangeBounds.Width, mm.maxWidth)); 1844arrangeBounds.Height = Math.Max(mm.minHeight, Math.Min(arrangeBounds.Height, mm.maxHeight)); 3476mm.maxWidth = Math.Min(MinWidth, maxSizeLogicalUnits.X); 3482mm.maxWidth = Math.Min(MaxWidth, maxSizeLogicalUnits.X); 3498mm.maxHeight = Math.Min(this.MinHeight, maxSizeLogicalUnits.Y); 3504mm.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)
250desired = new Size(Math.Min(borderX, availableSize.Width), Math.Min(borderY, availableSize.Height));
Microsoft\Windows\Themes\ScrollChrome.cs (4)
544double height = Math.Min(7.0, bounds.Height); 567double width = Math.Min(7.0, bounds.Width); 739double widthScale = Math.Min(glyphWidth, bounds.Width) / glyphWidth; 740double heightScale = Math.Min(glyphHeight, bounds.Height) / glyphHeight;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
111double maxRadius = Math.Min(centerWidth * 0.5, centerHeight * 0.5); 112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 113cornerRadius.TopRight = Math.Min(cornerRadius.TopRight, maxRadius); 114cornerRadius.BottomLeft = Math.Min(cornerRadius.BottomLeft, maxRadius); 115cornerRadius.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)
250desired = new Size(Math.Min(borderX, availableSize.Width), Math.Min(borderY, availableSize.Height));
Microsoft\Windows\Themes\ScrollChrome.cs (4)
544double height = Math.Min(7.0, bounds.Height); 567double width = Math.Min(7.0, bounds.Width); 739double widthScale = Math.Min(glyphWidth, bounds.Width) / glyphWidth; 740double heightScale = Math.Min(glyphHeight, bounds.Height) / glyphHeight;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
111double maxRadius = Math.Min(centerWidth * 0.5, centerHeight * 0.5); 112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 113cornerRadius.TopRight = Math.Min(cornerRadius.TopRight, maxRadius); 114cornerRadius.BottomLeft = Math.Min(cornerRadius.BottomLeft, maxRadius); 115cornerRadius.BottomRight = Math.Min(cornerRadius.BottomRight, maxRadius);
PresentationFramework.AeroLite (7)
Microsoft\Windows\Themes\ScrollChrome.cs (2)
240double height = Math.Min(7.0, bounds.Height); 255double width = Math.Min(7.0, bounds.Width);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
111double maxRadius = Math.Min(centerWidth * 0.5, centerHeight * 0.5); 112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 113cornerRadius.TopRight = Math.Min(cornerRadius.TopRight, maxRadius); 114cornerRadius.BottomLeft = Math.Min(cornerRadius.BottomLeft, maxRadius); 115cornerRadius.BottomRight = Math.Min(cornerRadius.BottomRight, maxRadius);
PresentationFramework.Classic (7)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
690desired = 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)
111double maxRadius = Math.Min(centerWidth * 0.5, centerHeight * 0.5); 112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 113cornerRadius.TopRight = Math.Min(cornerRadius.TopRight, maxRadius); 114cornerRadius.BottomLeft = Math.Min(cornerRadius.BottomLeft, maxRadius); 115cornerRadius.BottomRight = Math.Min(cornerRadius.BottomRight, maxRadius);
PresentationFramework.Luna (13)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
345desired = new Size(Math.Min(sideThickness2, availableSize.Width), Math.Min(sideThickness2, availableSize.Height));
Microsoft\Windows\Themes\ScrollChrome.cs (4)
379double height = Math.Min(6.0, bounds.Height); 401double width = Math.Min(6.0, bounds.Width); 591double widthScale = Math.Min(glyphWidth, bounds.Width) / glyphWidth; 592double heightScale = Math.Min(glyphHeight, bounds.Height) / glyphHeight;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (2)
187desired = 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)
111double maxRadius = Math.Min(centerWidth * 0.5, centerHeight * 0.5); 112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 113cornerRadius.TopRight = Math.Min(cornerRadius.TopRight, maxRadius); 114cornerRadius.BottomLeft = Math.Min(cornerRadius.BottomLeft, maxRadius); 115cornerRadius.BottomRight = Math.Min(cornerRadius.BottomRight, maxRadius);
PresentationFramework.Royale (13)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
303desired = new Size(Math.Min(sideThickness2, availableSize.Width), Math.Min(sideThickness2, availableSize.Height));
Microsoft\Windows\Themes\ScrollChrome.cs (4)
339double height = Math.Min(6.0, bounds.Height); 361double width = Math.Min(6.0, bounds.Width); 551double widthScale = Math.Min(glyphWidth, bounds.Width) / glyphWidth; 552double heightScale = Math.Min(glyphHeight, bounds.Height) / glyphHeight;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (2)
187desired = 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)
111double maxRadius = Math.Min(centerWidth * 0.5, centerHeight * 0.5); 112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 113cornerRadius.TopRight = Math.Min(cornerRadius.TopRight, maxRadius); 114cornerRadius.BottomLeft = Math.Min(cornerRadius.BottomLeft, maxRadius); 115cornerRadius.BottomRight = Math.Min(cornerRadius.BottomRight, maxRadius);
ReachFramework (7)
AlphaFlattener\BrushProxy.cs (3)
3739min = Math.Min(min, offset); 4393mint = Math.Min(mint, one); 4401mint = Math.Min(mint, two);
AlphaFlattener\Utility.cs (1)
1678scale = Math.Min(viewport.Width / viewbox.Width, viewport.Height / viewbox.Height);
Serialization\VisualSerializer.cs (3)
467scalex = Math.Min(dstwidth / srcwidth, dstheight / srcheight); 2258WriteAttr("Opacity", Math.Min(Math.Max( opacity, 0.0),1.0)); 2321SetCoordinateFormat(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)
996public static double Min(double x, double y) => Math.Min(x, y);
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendricalCalculationsHelper.cs (2)
246return Math.CopySign(Math.Min(Math.Abs(equation), TwelveHours), equation); 365return 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)
101minID = Math.Min(minID, (double)t / iters); 118minTLS = Math.Min(minTLS, (double)t / iters);
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
314_tokenCount = Math.Min(_options.TokenLimit, _tokenCount + add);
System.Windows.Controls.Ribbon (16)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (1)
74width = Math.Min(tabGroupHeader.TabsDesiredWidth, remainingSpace);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (4)
471stackDesiredSize.Width = Math.Min(stackDesiredSize.Width, constraint.Width); 472stackDesiredSize.Height = Math.Min(stackDesiredSize.Height, constraint.Height); 491logicalVisibleSpace = DoubleUtil.LessThanOrClose((viewportOffsetY + logicalVisibleSpace) - stackDesiredSize.Height, 0.0) ? 0.0 : Math.Min((viewportOffsetY + logicalVisibleSpace) - stackDesiredSize.Height, constraint.Height); 495offset.X = Math.Max(0, Math.Min(offset.X, extent.Width - viewport.Width));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (3)
140maxStarColumnWidth = Math.Max(maxStarColumnWidth, Math.Min(child.MaxWidth, child.DesiredSize.Width)); 222desiredHeight = Math.Min(Math.Max(desiredHeight, columnHeight), availableSize.Height); 257desiredHeight = Math.Min(Math.Max(desiredHeight, columnHeight), availableSize.Height);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (1)
481double targetValue = Math.Min(basePerStar * starInfo.RequestedStarWeight, starInfo.RequestedStarMaxWidth);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonScrollButtonVisibilityConverter.cs (1)
89double percent = Math.Min(100.0, Math.Max(0.0, (offset * 100.0 / (extent - viewport))));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
122double availableExtraWidth = Math.Min(desiredExtraPaddingPerTab, availableExtraWidthPerTab);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (5)
76startContextualTabX = Math.Min(CalculateContextualTabGroupStartX(firstContextualTab), availableSize.Width); 82endContextualTabX = Math.Min(CalculateContextualTabGroupEndX(lastContextualTab), availableSize.Width); 160desiredSize.Width = Math.Min(desiredSize.Width, availableSize.Width); // Prevent clipping 185startContextualTabX = Math.Min(CalculateContextualTabGroupStartX(firstContextualTab), finalSize.Width); 188endContextualTabX = Math.Min(startContextualTabX + tabGroups.DesiredSize.Width, finalSize.Width);
System.Windows.Forms (5)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
4438_labelRatio = Math.Max(Math.Min(_labelRatio, 9), 1.1);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
2183minTan = Math.Min(minTan, tan); 2184minHypotenuse = Math.Min(minHypotenuse, hypotenuse);
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
488_zoom = Math.Min(zoomX, zoomY); 658_zoom = Math.Min(zoomX, zoomY);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
241(int)Math.Min(Math.Ceiling(WatermarkSize.Width * 1.75), workingArea.Width / 3),
System.Windows.Input.Manipulations (2)
System\Windows\Input\Manipulations\ManipulationSequence.cs (2)
952torqueFactor = (float)Math.Min(1.0, Math.Pow(oldVector.Length / settings.Pivot.Radius, singleManipulatorTorqueFactor)); 1339smoothingLevel = Math.Max(0, Math.Min(1, smoothingLevel));
WindowsFormsIntegration (4)
System\Windows\Integration\WindowsFormsHost.cs (4)
248returnSize.Width = Math.Min(returnSize.Width, constraint.Width); 249returnSize.Height = Math.Min(returnSize.Height, constraint.Height); 283returnSize.Width = Math.Min(returnSize.Width, finalSize.Width); 284returnSize.Height = Math.Min(returnSize.Height, finalSize.Height);