742 references to Max
PresentationCore (57)
Core\CSharp\MS\Internal\Ink\CuspData.cs (1)
475rMax = Math.Max(a, rMax);
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (2)
35_radius = Math.Max(_radii.Width, _radii.Height); 762findex = Math.Abs(Math.Min(s1, s2) - 0d) < Math.Abs(Math.Max(s1, s2) - 1d) ? 0d : 1d;
Core\CSharp\MS\Internal\Ink\ErasingStroke.cs (1)
187Math.Max(lastFragment.EndFIndex, fragment.EndFIndex));
Core\CSharp\MS\Internal\Ink\Lasso.cs (2)
157DoubleUtil.LessThanOrClose(point.X, Math.Max(prevLassoPoint.X, lassoPoint.X))) 166if (DoubleUtil.GreaterThanOrClose(point.X, Math.Max(prevLassoPoint.X, lassoPoint.X)))
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (7)
115if ((Math.Min(prevArea, currArea) / Math.Max(prevArea, currArea)) <= 0.70d) 258double maxExtent = Math.Max(drawingAttributes.Height, drawingAttributes.Width); 538if ((Math.Min(prevArea, currArea) / Math.Max(prevArea, currArea)) <= 0.90d) 848double intersectLeft = Math.Max(rect1.Left, rect2.Left); 849double intersectTop = Math.Max(rect1.Top, rect2.Top); 850double intersectWidth = Math.Max((double)(Math.Min(rect1.Right, rect2.Right) - intersectLeft), (double)0); 851double intersectHeight = Math.Max((double)(Math.Min(rect1.Bottom, rect2.Bottom) - intersectTop), (double)0);
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (8)
515if (!((Math.Max(visEdgeStart.X, visEdgeEnd.X) < Math.Min(uv1.X, uv2.X)) || 516(Math.Min(visEdgeStart.X, visEdgeEnd.X) > Math.Max(uv1.X, uv2.X)) || 517(Math.Max(visEdgeStart.Y, visEdgeEnd.Y) < Math.Min(uv1.Y, uv2.Y)) || 518(Math.Min(visEdgeStart.Y, visEdgeEnd.Y) > Math.Max(uv1.Y, uv2.Y)))) 933if (!((Math.Max(visEdgeStart.X, visEdgeEnd.X) < Math.Min(uv1.X, uv2.X)) || 934(Math.Min(visEdgeStart.X, visEdgeEnd.X) > Math.Max(uv1.X, uv2.X)) || 935(Math.Max(visEdgeStart.Y, visEdgeEnd.Y) < Math.Min(uv1.Y, uv2.Y)) || 936(Math.Min(visEdgeStart.Y, visEdgeEnd.Y) > Math.Max(uv1.Y, uv2.Y))))
Core\CSharp\MS\Internal\Media3D\LineUtil.cs (1)
288maxvalue = Math.Max(maxvalue,m[i,j]*m[i,j]);
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (3)
302realHeight = Math.Max(realHeight, run.Height); 303realAscent = Math.Max(realAscent, run.Baseline); 304realDescent = Math.Max(realDescent, run.Height - run.Baseline);
Core\CSharp\MS\Internal\TextFormatting\TextFormatterImp.cs (1)
745value = Math.Max(value, Constants.DefaultIdealToReal);
Core\CSharp\System\Windows\Ink\Stroke2.cs (2)
431selectedDA.Height = Math.Max(selectedDA.Height, DrawingAttributes.DefaultHeight); 432selectedDA.Width = Math.Max(selectedDA.Width, DrawingAttributes.DefaultWidth);
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (1)
550Radius = (float)Math.Max(1.0, pivot.Radius)
Core\CSharp\System\Windows\Media\Animation\BackEase.cs (1)
46double amp = Math.Max(0.0, Amplitude);
Core\CSharp\System\Windows\Media\Animation\BounceEase.cs (1)
83double bounces = Math.Max(0.0, (double)Bounces);
Core\CSharp\System\Windows\Media\Animation\CircleEase.cs (1)
16normalizedTime = Math.Max(0.0, Math.Min(1.0, normalizedTime));
Core\CSharp\System\Windows\Media\Animation\Clock.cs (1)
4190long error = (long)Math.Max(_appliedSpeedRatio, 1.0);
Core\CSharp\System\Windows\Media\Animation\ElasticEase.cs (2)
73double oscillations = Math.Max(0.0, (double)Oscillations); 74double springiness = Math.Max(0.0, Springiness);
Core\CSharp\System\Windows\Media\Animation\PowerEase.cs (1)
48double power = Math.Max(0.0, Power);
Core\CSharp\System\Windows\Media\FormattedText.cs (4)
1820accBlackBoxRight = Math.Max(accBlackBoxRight, blackBoxRight); 1821accBlackBoxBottom = Math.Max(accBlackBoxBottom, blackBoxBottom); 1828metrics.Width = Math.Max(metrics.Width, currentLine.Width); 1829metrics.WidthIncludingTrailingWhitespace = Math.Max(metrics.WidthIncludingTrailingWhitespace, currentLine.WidthIncludingTrailingWhitespace);
Core\CSharp\System\Windows\Media\GlyphRun.cs (1)
1473return Math.Max(advance, oneSideBearing + otherSideBearing + 1);
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (2)
521return new Size(Math.Max(0, GetWidthInternal()), 522Math.Max(0, GetHeightInternal()));
Core\CSharp\System\Windows\Media3D\Quaternion.cs (5)
175double maxcoeff = Math.Max(Math.Abs(_x),Math.Max(Math.Abs(_y),Math.Abs(_z))); 451double max = Math.Max(Math.Max(Math.Abs(_x),Math.Abs(_y)), 452Math.Max(Math.Abs(_z),Math.Abs(_w)));
Core\CSharp\System\Windows\Media3D\Rect3D.cs (9)
104_sizeX = Math.Max(point1._x, point2._x) - _x; 105_sizeY = Math.Max(point1._y, point2._y) - _y; 106_sizeZ = Math.Max(point1._z, point2._z) - _z; 443double x = Math.Max(_x, rect._x); 444double y = Math.Max(_y, rect._y); 445double z = Math.Max(_z, rect._z); 484_sizeX = Math.Max(_x + _sizeX, rect._x + rect._sizeX) - x; 485_sizeY = Math.Max(_y + _sizeY, rect._y + rect._sizeY) - y; 486_sizeZ = Math.Max(_z + _sizeZ, rect._z + rect._sizeZ) - z;
PresentationFramework (439)
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (4)
105newSize.Width = Math.Max(newSize.Width, left + child.DesiredSize.Width); 109newSize.Width = Math.Max(newSize.Width, child.DesiredSize.Width); 115newSize.Height = Math.Max(newSize.Height, top + child.DesiredSize.Height); 119newSize.Height = Math.Max(newSize.Height, child.DesiredSize.Height);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
1079offset = Math.Max(offset, -(rectStickyNote.Left - rectPage.Left)); 1090offset = Math.Max(offset, -(rectStickyNote.Top - rectPage.Top));
src\Framework\MS\Internal\Documents\DocumentGrid.cs (6)
604clippedHorizontalOffset = Math.Max(clippedHorizontalOffset, 0.0); 647clippedVerticalOffset = Math.Max(clippedVerticalOffset, 0.0); 1248pageOffset = new Point(Math.Max(ViewportWidth, ExtentWidth) - (xOffset + pageSize.Width), yOffset); 1636double centerWidth = Math.Max(ViewportWidth, ExtentWidth); 2412newScale = Math.Max(newScale, CurrentMinimumScale); 2749Math.Max(0.0, (ExtentWidth - row.RowSize.Width) / 2.0) : 0.0;
src\Framework\MS\Internal\Documents\DocumentGridPage.cs (1)
302new Size(_dropShadowWidth, Math.Max( 0.0, arrangeSize.Height - _dropShadowWidth))
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (2)
149Math.Max(0, Math.Min(_scrollData.ExtentWidth - _scrollData.ViewportWidth, _scrollData.HorizontalOffset)), 150Math.Max(0, Math.Min(_scrollData.ExtentHeight - _scrollData.ViewportHeight, _scrollData.VerticalOffset)));
src\Framework\MS\Internal\Documents\RowCache.cs (4)
494_extentWidth = Math.Max(currentRow.RowSize.Width, _extentWidth); 1026_extentWidth = Math.Max(newRow.RowSize.Width, _extentWidth); 1154_extentWidth = Math.Max(row.RowSize.Width, _extentWidth); 1423_rowSize.Height = Math.Max(pageSize.Height, _rowSize.Height);
src\Framework\MS\Internal\Documents\ScrollData.cs (2)
138offset = Math.Max(0, Math.Min(_extent.Width - _viewport.Width, offset)); 160offset = Math.Max(0, Math.Min(_extent.Height - _viewport.Height, offset));
src\Framework\MS\Internal\Documents\TextBoxView.cs (5)
1789Math.Max(0, Math.Min(_scrollData.ExtentWidth - _scrollData.ViewportWidth, _scrollData.HorizontalOffset)), 1790Math.Max(0, Math.Min(_scrollData.ExtentHeight - _scrollData.ViewportHeight, _scrollData.VerticalOffset))); 2277desiredSize.Width = Math.Max(desiredSize.Width, line.Width); 2647desiredSize.Width = Math.Max(desiredSize.Width, _lineMetrics[i].Width); 3107padding = Math.Max(0, viewport.Height - _contentSize.Height);
src\Framework\MS\Internal\Documents\TextParagraphView.cs (2)
749siblingGap = Math.Max(lineBox.X - (siblingLineBox.X + siblingLineBox.Width), 0); 778siblingGap = Math.Max(siblingLineBox.X - (lineBox.X + lineBox.Width), 0);
src\Framework\MS\Internal\Helper.cs (7)
1097headerSize.Height = Math.Max(itemsCorrectionFactor.Top, headerSize.Height); 1101headerSize.Height = Math.Max(virtualizingElement.DesiredSize.Height, headerSize.Height); 1103headerSize.Width = Math.Max(virtualizingElement.DesiredSize.Width, headerSize.Width); 1134itemPixelSize.Width = Math.Max(desiredSize.Width, itemPixelSize.Width); 1147itemPixelSizeBeforeViewport.Width = Math.Max(desiredSize.Width, itemPixelSizeBeforeViewport.Width); 1159itemPixelSizeInViewport.Width = Math.Max(desiredSize.Width, itemPixelSizeInViewport.Width); 1170itemPixelSizeAfterViewport.Width = Math.Max(desiredSize.Width, itemPixelSizeAfterViewport.Width);
src\Framework\MS\Internal\Ink\LassoHelper.cs (3)
242&& DoubleUtil.LessThanOrClose(point.X, Math.Max(prevLassoPoint.X, lassoPoint.X))) 251if (DoubleUtil.GreaterThanOrClose(point.X, Math.Max(prevLassoPoint.X, lassoPoint.X))) 257if ((0 == i) && DoubleUtil.AreClose(point.X, Math.Max(prevLassoPoint.X, lassoPoint.X)))
src\Framework\MS\Internal\PtsHost\CellParagraph.cs (1)
89Math.Max(TextDpi.FromTextDpi(dvrAvailable), 0));
src\Framework\MS\Internal\PtsHost\FigureHelper.cs (2)
188value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight)); 193value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom));
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (2)
639width = Math.Max(TextDpi.MinWidth, maxTotalWidth - elementMarginWidth); 668height = Math.Max(TextDpi.MinWidth, maxTotalHeight - elementMarginHeight);
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (2)
986columnWidth = Math.Max(1, Math.Min(columnWidth, pageWidth)); 988freeSpace = Math.Max(0, freeSpace);
src\Framework\MS\Internal\PtsHost\PtsPage.cs (6)
853_calculatedSize.Width = Math.Max(TextDpi.MinWidth, TextDpi.FromTextDpi(rect.du)); 854_calculatedSize.Height = Math.Max(TextDpi.MinWidth, TextDpi.FromTextDpi(rect.dv)); 858_contentSize.Width = Math.Max(Math.Max(TextDpi.FromTextDpi(bbox.fsrc.du), TextDpi.MinWidth), _calculatedSize.Width); 859_contentSize.Height = Math.Max(TextDpi.MinWidth, TextDpi.FromTextDpi(bbox.fsrc.dv)); 865_contentSize.Height = Math.Max(_contentSize.Height, _calculatedSize.Height);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (2)
2298lineRect.Width = Math.Max(lineVisual.WidthIncludingTrailingWhitespace, 0); 2409elementRect.Width = Math.Max(lineVisual.WidthIncludingTrailingWhitespace, 0);
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (2)
406elementHeight = Math.Max(TextDpi.FromTextDpi(1), elementHeight - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom)); 427elementHeight = Math.Max(TextDpi.FromTextDpi(1), elementHeight);
src\Framework\MS\Internal\Text\DynamicPropertyReader.cs (1)
220return Math.Max(TextDpi.MinWidth, Math.Min(TextDpi.MaxWidth, lineHeight));
src\Framework\MS\Internal\Text\LineProperties.cs (2)
190lineAdvance = Math.Max(lineAdvance, _lineHeight); 222lineAdvance = Math.Max(lineAdvance, _lineHeight);
src\Framework\MS\Internal\Text\TextDpi.cs (2)
170pageMargin.Right = Math.Max(0.0, pageSize.Width - pageMargin.Left - _minSize); 179pageMargin.Bottom = Math.Max(0.0, pageSize.Height - pageMargin.Top - _minSize);;
src\Framework\System\Windows\Controls\Border.cs (12)
241Size childConstraint = new Size(Math.Max(0.0, constraint.Width - combined.Width), 242Math.Max(0.0, constraint.Height - combined.Height)); 648Math.Max(0.0, rt.Width - thick.Left - thick.Right), 649Math.Max(0.0, rt.Height - thick.Top - thick.Bottom)); 992LeftTop = Math.Max(0.0, radii.TopLeft - left); 993TopLeft = Math.Max(0.0, radii.TopLeft - top); 994TopRight = Math.Max(0.0, radii.TopRight - top); 995RightTop = Math.Max(0.0, radii.TopRight - right); 996RightBottom = Math.Max(0.0, radii.BottomRight - right); 997BottomRight = Math.Max(0.0, radii.BottomRight - bottom); 998BottomLeft = Math.Max(0.0, radii.BottomLeft - bottom); 999LeftBottom = Math.Max(0.0, radii.BottomLeft - left);
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (5)
192measureHeight = Math.Max(measureHeight, blockMeasureSize.Height); 404measureSize.Height = Math.Max(measureSize.Height, childSize.Height); 424measureSize.Height = Math.Max(measureSize.Height, headerSize.Height); 619measureHeight = Math.Max(measureHeight, childSize.Height); 1910childMeasureWidth = Math.Max(averageColumnWidth, column.MinWidth);
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (11)
953availableStarSpace = Math.Max(0.0, availableStarSpace - columnMinWidth); 1237double displayValue = Math.Max(width.DesiredValue, minWidth); 1391Math.Max(width.DisplayValue - nonRetrievableSpace, changedColumn.MinWidth))); 1463return Math.Max(availableSpace - requiredSpace, 0.0); 1674column.UpdateWidthForStarColumn(Math.Max(columnDesiredWidth, column.MinWidth), columnDesiredWidth, columnDesiredWidth / perStarWidth); 1703double columnExcessWidth = onlyShrinkToDesiredWidth ? width.DisplayValue - Math.Max(width.DesiredValue, column.MinWidth) : width.DisplayValue - column.MinWidth; 2011giveAwayWidth = Math.Max(usedStarSpace - expectedStarSpace, 0.0); 2147giveAwayWidth = Math.Min(giveAwayWidth, Math.Max(0d, totalSpace - usedSpace)); 2202takeAwayWidth = Math.Max(0.0, takeAwayWidth - unusedSpace); 2273double usedStarSpace = ComputeStarColumnWidths(Math.Max(expectedStarSpace, sumOfStarMinWidths)); 2274takeAwayWidth = Math.Max(usedStarSpace - expectedStarSpace, 0.0);
src\Framework\System\Windows\Controls\DataGridHelper.cs (3)
40return new Size(size.Width, Math.Max(0.0, size.Height - thickness)); 44return new Size(Math.Max(0.0, size.Width - thickness), size.Height); 721value = Math.Max(value, minValue);
src\Framework\System\Windows\Controls\DataGridRow.cs (1)
554double minHeight = Math.Max(RowHeader.DesiredSize.Height, MinHeight);
src\Framework\System\Windows\Controls\DefinitionBase.cs (2)
139_minSize = Math.Max(_minSize, minSize); 882sharedMinSize = Math.Max(sharedMinSize, _registry[i].MinSize);
src\Framework\System\Windows\Controls\DockPanel.cs (10)
232childConstraint = new Size(Math.Max(0.0, constraint.Width - accumulatedWidth), 233Math.Max(0.0, constraint.Height - accumulatedHeight)); 253parentHeight = Math.Max(parentHeight, accumulatedHeight + childDesiredSize.Height); 259parentWidth = Math.Max(parentWidth, accumulatedWidth + childDesiredSize.Width); 266parentWidth = Math.Max(parentWidth, accumulatedWidth); 267parentHeight = Math.Max(parentHeight, accumulatedHeight); 297Math.Max(0.0, arrangeSize.Width - (accumulatedLeft + accumulatedRight)), 298Math.Max(0.0, arrangeSize.Height - (accumulatedTop + accumulatedBottom)) ); 311rcChild.X = Math.Max(0.0, arrangeSize.Width - accumulatedRight); 322rcChild.Y = Math.Max(0.0, arrangeSize.Height - accumulatedBottom);
src\Framework\System\Windows\Controls\DocumentViewer.cs (2)
1428VerticalOffset = Math.Max(verticalOffset, 0.0); 1429HorizontalOffset = Math.Max(horizontalOffset, 0.0);
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (1)
735SetCurrentValueInternal(ZoomProperty, Math.Max(Zoom - ZoomIncrement, MinZoom));
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (6)
593Math.Max(ia.OriginWidth, pagePadding.Left), 594Math.Max(ia.OriginHeight, pagePadding.Top), 595Math.Max(ia.MediaSizeWidth - (ia.OriginWidth + ia.ExtentWidth), pagePadding.Right), 596Math.Max(ia.MediaSizeHeight - (ia.OriginHeight + ia.ExtentHeight), pagePadding.Bottom)); 647Zoom = Math.Max(Zoom - ZoomIncrement, MinZoom); 722SetCurrentValueInternal(ZoomProperty, Math.Max(Zoom - ZoomIncrement, MinZoom));
src\Framework\System\Windows\Controls\Grid.cs (27)
442gridDesiredSize.Width = Math.Max(gridDesiredSize.Width, child.DesiredSize.Width); 443gridDesiredSize.Height = Math.Max(gridDesiredSize.Height, child.DesiredSize.Height); 1169userMinSize = Math.Max(userMinSize, Math.Min(userSize, userMaxSize)); 1193definitions[i].MeasureSize = Math.Max(userMinSize, Math.Min(userSize, userMaxSize)); 1532double maxSize = Math.Max(definitions[i].UserMaxSize, minSize); 1740double maxSize = Math.Max(definitions[i].MinSize, definitions[i].UserMaxSize); 1779double userSize = Math.Max(availableSize - takenSize, 0.0) * (starValue / tempDefinitions[i].SizeCache); 1781resolvedSize = Math.Max(tempDefinitions[i].MinSize, resolvedSize); 1893double effectiveMaxSize = Math.Max(def.MinSize, def.UserMaxSize); 1965resolvedSize = Math.Max(resolvedDef.MinSize, resolvedDef.UserMaxSize); 2083double resolvedSize = (def.MeasureSize > 0.0) ? Math.Max(availableSize - takenSize, 0.0) * (def.MeasureSize / def.SizeCache) : 0.0; 2087resolvedSize = Math.Max(def.MinSize, resolvedSize); 2180double maxSize = Math.Max(definitions[i].MinSizeForArrange, definitions[i].UserMaxSize); 2221definitions[i].SizeCache = Math.Max(definitions[i].MinSizeForArrange, Math.Min(userSize, userMaxSize)); 2267double userSize = Math.Max(finalSize - allPreferredArrangeSize, 0.0) * (starValue / definitions[definitionIndices[i]].SizeCache); 2269resolvedSize = Math.Max(definitions[definitionIndices[i]].MinSizeForArrange, resolvedSize); 2295final = Math.Max(final, definitions[definitionIndex].MinSizeForArrange); 2302final = Math.Max(final, definitions[definitionIndex].MinSizeForArrange); 2337final = Math.Max(final, definition.MinSizeForArrange); 2353final = Math.Max(final, definition.MinSizeForArrange); 2471double effectiveMaxSize = Math.Max(def.MinSizeForArrange, def.UserMaxSize); 2510def.SizeCache = Math.Max(def.MinSizeForArrange, Math.Min(userSize, userMaxSize)); 2581resolvedSize = Math.Max(resolvedDef.MinSizeForArrange, resolvedDef.UserMaxSize); 2700double resolvedSize = (def.MeasureSize > 0.0) ? Math.Max(finalSize - takenSize, 0.0) * (def.MeasureSize / def.SizeCache) : 0.0; 2704resolvedSize = Math.Max(def.MinSizeForArrange, resolvedSize); 2797final = Math.Max(final, definition.MinSizeForArrange); 2813final = Math.Max(final, definition.MinSizeForArrange);
src\Framework\System\Windows\Controls\GridSplitter.cs (5)
666_resizeData.Adorner.OffsetX = Math.Min(Math.Max(horizontalChange, _resizeData.MinChange), _resizeData.MaxChange); 670_resizeData.Adorner.OffsetY = Math.Min(Math.Max(verticalChange, _resizeData.MinChange), _resizeData.MaxChange); 804definition1Min = Math.Max(definition1Min, _resizeData.SplitterLength); 808definition2Min = Math.Max(definition2Min, _resizeData.SplitterLength); 923delta = Math.Min(Math.Max(delta, min), max);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (4)
264double childConstraintWidth = Math.Max(0.0, constraint.Width - accumulatedWidth); 301maxHeight = Math.Max(maxHeight, child.DesiredSize.Height); 308maxHeight = Math.Max(maxHeight, _paddingHeader.DesiredSize.Height); 391rect = new Rect(accumulatedWidth, 0.0, Math.Max(remainingWidth, 0.0), arrangeSize.Height);
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (2)
150double childConstraintWidth = Math.Max(0.0, constraint.Width - accumulatedWidth); 194maxHeight = Math.Max(maxHeight, child.DesiredSize.Height);
src\Framework\System\Windows\Controls\InkPresenter.cs (2)
185newSize.Width = Math.Max(newSize.Width, sizeStrokes.Width); 186newSize.Height = Math.Max(newSize.Height, sizeStrokes.Height);
src\Framework\System\Windows\Controls\ItemsControl.cs (2)
2814return FindFocusable((int)(ScrollHost.VerticalOffset + Math.Max(ScrollHost.ViewportHeight - 1, 0)), 2828return FindFocusable((int)(ScrollHost.HorizontalOffset + Math.Max(ScrollHost.ViewportWidth - 1, 0)),
src\Framework\System\Windows\Controls\MenuScrollingVisibilityConverter.cs (1)
99double percent = Math.Min(100.0, Math.Max(0.0, (verticalOffset * 100.0 / (extentHeight - viewportHeight))));
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (5)
258contentConstraint.Width = Math.Max(0.0, contentConstraint.Width - bulletSize.Width); 264Size desiredSize = new Size(bulletSize.Width + contentSize.Width, Math.Max(bulletSize.Height, contentSize.Height)); 301contentSize.Width = Math.Max(content.DesiredSize.Width, arrangeSize.Width - bullet.DesiredSize.Width); 302contentSize.Height = Math.Max(content.DesiredSize.Height, arrangeSize.Height); 307bulletOffsetY += Math.Max(0d, centerY - bulletSize.Height * 0.5d);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (7)
122desiredSize.Width = Math.Max(desiredSize.Width, indicatorSize.Width); 123desiredSize.Height = Math.Max(desiredSize.Height, indicatorSize.Height); 130desiredSize.Width = Math.Max(desiredSize.Width, indicatorSize.Width); 131desiredSize.Height = Math.Max(desiredSize.Height, indicatorSize.Height); 154childRect.Width = Math.Max(finalSize.Width, dataGrid.CellsPanelActualWidth); 698height = Math.Max(_draggingSrcColumnHeader.RenderSize.Height, _columnHeaderDragIndicator.Height); 922columnEstimatedWidth = Math.Max(averageColumnWidth, column.MinWidth);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (8)
2259limitSize.Height = Math.Max(0.0, Math.Max(screenBounds.Bottom - targetBounds.Bottom, targetBounds.Top - screenBounds.Top)); 2263limitSize.Width = Math.Max(0.0, Math.Max(screenBounds.Right - targetBounds.Right, targetBounds.Left - screenBounds.Left)); 2281limitSize.Width = Math.Max(0.0, Math.Max(screenBounds.Right - targetBounds.Right, targetBounds.Left - screenBounds.Left)); 2285limitSize.Height = Math.Max(0.0, Math.Max(screenBounds.Bottom - targetBounds.Bottom, targetBounds.Top - screenBounds.Top));
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (3)
430newValue = Math.Min(Math.Max(newValue, Minimum), Maximum); 560double newValue = Math.Max(Value - SmallChange, Minimum); 578double newValue = Math.Max(Value - LargeChange, Minimum);
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (3)
500childRect.Width = Math.Max(childRect.Width, arrangeSize.Width); 501childRect.Height = Math.Max(childRect.Height, arrangeSize.Height); 703return Math.Max(0.0, offset);
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (5)
213desiredSizeWithoutMargin.Height = Math.Max(0d, element.DesiredSize.Height - margin.Top - margin.Bottom); 214desiredSizeWithoutMargin.Width = Math.Max(0d, element.DesiredSize.Width - margin.Left - margin.Right); 285childSize.Height = Math.Max(0d, childSize.Height - topOffset - bottomOffset); 286childSize.Width = Math.Max(0d, childSize.Width - leftOffset - rightOffset); 417currentAverageGap = Math.Max(0d, (rowWidthLimit - currentRowWidth) / numberOfHeadersInCurrentRow); // The amout of width that should be added to justify the header
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (5)
132_panelSize.Width = Math.Max(curLineSize.Width, _panelSize.Width); 138_panelSize.Width = Math.Max(sz.Width, _panelSize.Width); 146curLineSize.Height = Math.Max(sz.Height, curLineSize.Height); 151_panelSize.Width = Math.Max(curLineSize.Width, _panelSize.Width); 187curLineSize.Height = Math.Max(sz.Height, curLineSize.Height);
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (6)
126panelDesiredSize.Height = Math.Max(panelDesiredSize.Height, childDesiredSize.Height); 130panelDesiredSize.Width = Math.Max(panelDesiredSize.Width, childDesiredSize.Width); 185panelDesiredSize.Height = Math.Max(panelDesiredSize.Height, childDesiredSize.Height); 190panelDesiredSize.Width = Math.Max(panelDesiredSize.Width, childDesiredSize.Width); 314rcChild.Height = Math.Max(arrangeSize.Height, child.DesiredSize.Height); 321rcChild.Width = Math.Max(arrangeSize.Width, child.DesiredSize.Width);
src\Framework\System\Windows\Controls\Primitives\Track.cs (6)
84return Math.Max(Minimum, Math.Min(Maximum, val)); 484double viewportSize = Math.Max(0.0, ViewportSize); 583double range = Math.Max(0.0, Maximum - min); 622double range = Math.Max(0.0, Maximum - min); 627double extent = Math.Max(0.0, range) + viewportSize; 653thumbLength = Math.Max(thumbMinLength, thumbLength);
src\Framework\System\Windows\Controls\ScrollViewer.cs (3)
412get { return Math.Max(0.0, ExtentWidth - ViewportWidth); } 420get { return Math.Max(0.0, ExtentHeight - ViewportHeight); } 1856double newUnused = Math.Max(unused + delta, 0);
src\Framework\System\Windows\Controls\SinglePageViewer.cs (5)
711Math.Max(ia.OriginWidth, pagePadding.Left), 712Math.Max(ia.OriginHeight, pagePadding.Top), 713Math.Max(ia.MediaSizeWidth - (ia.OriginWidth + ia.ExtentWidth), pagePadding.Right), 714Math.Max(ia.MediaSizeHeight - (ia.OriginHeight + ia.ExtentHeight), pagePadding.Bottom)); 764SetCurrentValueInternal(ZoomProperty, Math.Max(Zoom - ZoomIncrement, MinZoom));
src\Framework\System\Windows\Controls\Slider.cs (8)
1023valueToSize = Math.Max(0.0, (trackSize.Width - thumbSize.Width) / range); 1029Canvas.SetLeft(rangeElement, (thumbSize.Width * 0.5) + Math.Max(Maximum - SelectionEnd, 0) * valueToSize); 1033Canvas.SetLeft(rangeElement, (thumbSize.Width * 0.5) + Math.Max(SelectionStart - Minimum, 0) * valueToSize); 1045valueToSize = Math.Max(0.0, (trackSize.Height - thumbSize.Height) / range); 1051Canvas.SetTop(rangeElement, (thumbSize.Height * 0.5) + Math.Max(SelectionStart - Minimum, 0) * valueToSize); 1055Canvas.SetTop(rangeElement, (thumbSize.Height * 0.5) + Math.Max(Maximum - SelectionEnd,0) * valueToSize); 1161double next = SnapToTick(Math.Max(this.Minimum, Math.Min(this.Maximum, value + direction))); 1357this.SetCurrentValueInternal(ValueProperty, Math.Max(this.Minimum, Math.Min(this.Maximum, snappedValue)));
src\Framework\System\Windows\Controls\Stack.cs (8)
610stackDesiredSize.Height = Math.Max(stackDesiredSize.Height, childDesiredSize.Height); 615stackDesiredSize.Width = Math.Max(stackDesiredSize.Width, childDesiredSize.Width); 675offset.Y = Math.Max(0, Math.Min(offset.Y, extent.Height - viewport.Height)); 683offset.X = Math.Max(0, Math.Min(offset.X, extent.Width - viewport.Width)); 767rcChild.Height = Math.Max(arrangeSize.Height, child.DesiredSize.Height); 774rcChild.Width = Math.Max(arrangeSize.Width, child.DesiredSize.Width); 908double left = Math.Max(targetRectOffset, minPhysicalOffset); 909targetRectSize = Math.Max(Math.Min(targetRectSize + targetRectOffset, minPhysicalOffset + viewportSize) - left, 0);
src\Framework\System\Windows\Controls\StickyNote.cs (2)
1160horizontalChange = Math.Min(Math.Max(minBoundary.X, horizontalChange), maxBoundary.X); 1161verticalChange = Math.Min(Math.Max(minBoundary.Y, verticalChange), maxBoundary.Y);
src\Framework\System\Windows\Controls\TextBlock.cs (10)
1353Size contentSize = new Size(Math.Max(0.0, constraint.Width - (padding.Left + padding.Right)), 1354Math.Max(0.0, constraint.Height - (padding.Top + padding.Bottom))); 1393desiredSize.Width = Math.Max(desiredSize.Width, line.GetCollapsedWidth()); 1622double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom); 2067Size contentSize = new Size(Math.Max(0.0, _referenceSize.Width - (padding.Left + padding.Right)), 2068Math.Max(0.0, _referenceSize.Height - (padding.Top + padding.Bottom))); 3206Size contentSize = new Size(Math.Max(0.0, computedSize.Width - (padding.Left + padding.Right)), 3207Math.Max(0.0, computedSize.Height - (padding.Top + padding.Bottom))); 3256double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom); 3286width = Math.Max(0.0, width - paddingWidth);
src\Framework\System\Windows\Controls\ToolBar.cs (2)
568extraLength = Math.Max(0.0, desiredSize.Width - toolBarPanel.DesiredSize.Width + margin.Left + margin.Right); 572extraLength = Math.Max(0.0, desiredSize.Height - toolBarPanel.DesiredSize.Height + margin.Top + margin.Bottom);
src\Framework\System\Windows\Controls\ToolBarTray.cs (5)
399bandThickness = Math.Max(bandThickness, fHorizontal ? toolBar.DesiredSize.Height : toolBar.DesiredSize.Width); 414toolBarTrayDesiredSize.Width = Math.Max(toolBarTrayDesiredSize.Width, bandLength); 419toolBarTrayDesiredSize.Height = Math.Max(toolBarTrayDesiredSize.Height, bandLength); 813currentToolBar.Width = Math.Max(currentToolBar.MinLength, currentToolBar.RenderSize.Width - toolBarOffset + position); 815currentToolBar.Height = Math.Max(currentToolBar.MinLength, currentToolBar.RenderSize.Height - toolBarOffset + position);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (104)
2580double spanBeforeViewport = Math.Max(isHorizontal ? viewport.X : viewport.Y, 0.0); 3328arrangeLength = Math.Max(isHorizontal ? arrangeSize.Height : arrangeSize.Width, arrangeLength); 4670pixelSizeBeforeViewport = Math.Max(pixelSizeBeforeViewport, Math.Abs(_viewport.X - _extendedViewport.X)); 4674logicalSizeBeforeViewport = Math.Max(logicalSizeBeforeViewport, Math.Abs(_viewport.X - _extendedViewport.X)); 4706extendedViewport.Width = Math.Max(extendedViewport.Width + extendedViewport.X, 0.0); 4741extendedViewport.Width = Math.Max(extendedViewport.Width / approxSizeOfLogicalUnit + extendedViewport.X, 0.0) * approxSizeOfLogicalUnit; 4776pixelSizeBeforeViewport = Math.Max(pixelSizeBeforeViewport, Math.Abs(_viewport.Y - _extendedViewport.Y)); 4780logicalSizeBeforeViewport = Math.Max(logicalSizeBeforeViewport, Math.Abs(_viewport.Y - _extendedViewport.Y)); 4812extendedViewport.Height = Math.Max(extendedViewport.Height + extendedViewport.Y, 0.0); 4847extendedViewport.Height = Math.Max(extendedViewport.Height / approxSizeOfLogicalUnit + extendedViewport.Y, 0.0) * approxSizeOfLogicalUnit; 4865double factor = Math.Max(1.0, isHorizontal ? extendedViewport.Width / viewport.Width : extendedViewport.Height / viewport.Height); 4978viewport.Width = Math.Max(viewport.Width - sizeAfterStartViewportEdge, 0); 4982cacheBeforeSize = Math.Max(cacheBeforeSize - sizeBeforeStartViewportEdge, 0); 4986cacheBeforeSize = Math.Max(cacheBeforeSize - Math.Floor(logicalSize.Width * sizeBeforeStartViewportEdge / pixelSize.Width), 0); 5013viewport.Width = Math.Max(0, parentViewport.Width - pixelSize.Width); 5028cacheAfterSize = Math.Max(cacheAfterSize - sizeAfterEndViewportEdge, 0); 5032cacheAfterSize = Math.Max(cacheAfterSize - Math.Floor(logicalSize.Width * sizeAfterEndViewportEdge / pixelSize.Width), 0); 5044cacheAfterSize = Math.Max(cacheAfterSize - pixelSize.Width, 0); 5048cacheAfterSize = Math.Max(cacheAfterSize - logicalSize.Width, 0); 5077viewport.Height = Math.Max(viewport.Height - sizeAfterStartViewportEdge, 0); 5081cacheBeforeSize = Math.Max(cacheBeforeSize - sizeBeforeStartViewportEdge, 0); 5085cacheBeforeSize = Math.Max(cacheBeforeSize - Math.Floor(logicalSize.Height * sizeBeforeStartViewportEdge / pixelSize.Height), 0); 5112viewport.Height = Math.Max(0, parentViewport.Height - pixelSize.Height); 5127cacheAfterSize = Math.Max(cacheAfterSize - sizeAfterEndViewportEdge, 0); 5131cacheAfterSize = Math.Max(cacheAfterSize - Math.Floor(logicalSize.Height * sizeAfterEndViewportEdge / pixelSize.Height), 0); 5143cacheAfterSize = Math.Max(cacheAfterSize - pixelSize.Height, 0); 5147cacheAfterSize = Math.Max(cacheAfterSize - logicalSize.Height, 0); 5212cacheBeforeSize = Math.Max(0, cacheBeforeSize - parentViewport.X); 5217viewport.Width = Math.Max(0, viewport.Width + viewport.X); 5237cacheBeforeSize = Math.Max(0, cacheBeforeSize - inset.Right); 5241cacheBeforeSize = Math.Max(0, cacheBeforeSize - 1); 5256viewport.Width = Math.Max(0, viewport.Width - inset.Left); 5267cacheAfterSize = Math.Max(0, cacheAfterSize - (inset.Left - viewport.Width)); 5284cacheAfterSize = Math.Max(0, cacheAfterSize - inset.Left); 5288cacheAfterSize = Math.Max(0, cacheAfterSize - 1); 5315cacheBeforeSize = Math.Max(0, cacheBeforeSize - parentViewport.Y); 5320viewport.Height = Math.Max(0, viewport.Height + viewport.Y); 5340cacheBeforeSize = Math.Max(0, cacheBeforeSize - inset.Bottom); 5344cacheBeforeSize = Math.Max(0, cacheBeforeSize - 1); 5359viewport.Height = Math.Max(0, viewport.Height - inset.Top); 5370cacheAfterSize = Math.Max(0, cacheAfterSize - (inset.Top - viewport.Height)); 5387cacheAfterSize = Math.Max(0, cacheAfterSize - inset.Top); 5391cacheAfterSize = Math.Max(0, cacheAfterSize - 1); 5447double spanBeforeViewport = Math.Max(isHorizontal ? viewport.X : viewport.Y, 0.0); 6598childViewport.Width = Math.Max(childViewport.Width - stackPixelSizeInViewport.Width, 0.0); 6603childViewport.Width = Math.Max(childViewport.Width - stackPixelSizeInViewport.Width, 0.0); 6611Math.Max(parentCacheSize.CacheBeforeViewport - stackLogicalSizeInCacheBeforeViewport.Width, 0.0), 6614Math.Max(parentCacheSize.CacheAfterViewport - stackLogicalSizeInCacheAfterViewport.Width, 0.0)); 6622Math.Max(parentCacheSize.CacheBeforeViewport - stackPixelSizeInCacheBeforeViewport.Width, 0.0), 6625Math.Max(parentCacheSize.CacheAfterViewport - stackPixelSizeInCacheAfterViewport.Width, 0.0)); 6644childViewport.Height = Math.Max(childViewport.Height - stackPixelSizeInViewport.Height, 0.0); 6649childViewport.Height = Math.Max(childViewport.Height - stackPixelSizeInViewport.Height, 0.0); 6657Math.Max(parentCacheSize.CacheBeforeViewport - stackLogicalSizeInCacheBeforeViewport.Height, 0.0), 6660Math.Max(parentCacheSize.CacheAfterViewport - stackLogicalSizeInCacheAfterViewport.Height, 0.0)); 6668Math.Max(parentCacheSize.CacheBeforeViewport - stackPixelSizeInCacheBeforeViewport.Height, 0.0), 6671Math.Max(parentCacheSize.CacheAfterViewport - stackPixelSizeInCacheAfterViewport.Height, 0.0)); 6774childLogicalSize.Width = Math.Max(itemDesiredSizes.LogicalSize.Width, logicalHeaderSize.Width); 6779childLogicalSize.Height = Math.Max(itemDesiredSizes.LogicalSize.Height, logicalHeaderSize.Height); 6978Size frontPixelSize = isHorizontal ? new Size(Math.Max(inset.Left,0), childDesiredSize.Height) 6979: new Size(childDesiredSize.Width, Math.Max(inset.Top, 0)); 6992Size backPixelSize = isHorizontal ? new Size(Math.Max(inset.Right,0), childDesiredSize.Height) 6993: new Size(childDesiredSize.Width, Math.Max(inset.Bottom,0)); 7006adjustedChildViewport.Width = Math.Max(0, adjustedChildViewport.Width - childPixelSizeInViewport.Width); 7012adjustedChildViewport.Height = Math.Max(0, adjustedChildViewport.Height - childPixelSizeInViewport.Height); 7097pixelSizeBeforeViewport = DoubleUtil.LessThan(childViewport.X, childPixelSize.Width) ? Math.Max(childViewport.X, 0.0) : childPixelSize.Width; 7099pixelSizeAfterViewport = Math.Max(childPixelSize.Width - pixelSizeInViewport - pixelSizeBeforeViewport, 0.0); // Please note that due to rounding errors this subtraction can lead to negative values. Hence the Math.Max call 7153double childPixelHeightInViewport = Math.Min(childViewport.Height, childPixelSize.Height - Math.Max(childViewport.Y, 0.0)); 7156childPixelSizeInViewport.Height = Math.Max(childPixelSizeInViewport.Height, childPixelHeightInViewport); 7158childPixelSizeInCacheBeforeViewport.Height = Math.Max(childPixelSizeInCacheBeforeViewport.Height, childPixelHeightInViewport); 7160childPixelSizeInCacheAfterViewport.Height = Math.Max(childPixelSizeInCacheAfterViewport.Height, childPixelHeightInViewport); 7163childLogicalSizeInViewport.Height = Math.Max(childLogicalSizeInViewport.Height, childLogicalSize.Height); 7165childLogicalSizeInCacheBeforeViewport.Height = Math.Max(childLogicalSizeInCacheBeforeViewport.Height, childLogicalSize.Height); 7167childLogicalSizeInCacheAfterViewport.Height = Math.Max(childLogicalSizeInCacheAfterViewport.Height, childLogicalSize.Height); 7189pixelSizeBeforeViewport = DoubleUtil.LessThan(childViewport.Y, childPixelSize.Height) ? Math.Max(childViewport.Y, 0.0) : childPixelSize.Height; 7191pixelSizeAfterViewport = Math.Max(childPixelSize.Height - pixelSizeInViewport - pixelSizeBeforeViewport, 0.0); // Please note that due to rounding errors this subtraction can lead to negative values. Hence the Math.Max call 7245double childPixelWidthInViewport = Math.Min(childViewport.Width, childPixelSize.Width - Math.Max(childViewport.X, 0.0)); 7248childPixelSizeInViewport.Width = Math.Max(childPixelSizeInViewport.Width, childPixelWidthInViewport); 7250childPixelSizeInCacheBeforeViewport.Width = Math.Max(childPixelSizeInCacheBeforeViewport.Width, childPixelWidthInViewport); 7252childPixelSizeInCacheAfterViewport.Width = Math.Max(childPixelSizeInCacheAfterViewport.Width, childPixelWidthInViewport); 7255childLogicalSizeInViewport.Width = Math.Max(childLogicalSizeInViewport.Width, childLogicalSize.Width); 7257childLogicalSizeInCacheBeforeViewport.Width = Math.Max(childLogicalSizeInCacheBeforeViewport.Width, childLogicalSize.Width); 7259childLogicalSizeInCacheAfterViewport.Width = Math.Max(childLogicalSizeInCacheAfterViewport.Width, childLogicalSize.Width); 7302sz1.Height = Math.Max(sz1.Height, sz2.Height); 7307sz1.Width = Math.Max(sz1.Width, sz2.Width); 7357childSize = new Size(Math.Max(headerDesiredSizes.PixelSize.Width, itemDesiredSizes.PixelSize.Width), 7362childSize = new Size(Math.Max(headerDesiredSizes.LogicalSize.Width, itemDesiredSizes.LogicalSize.Width), 7530Math.Max(1, itemDesiredSizes.LogicalSize.Height)) 7531: new Size(Math.Max(1, itemDesiredSizes.LogicalSize.Width), 8327rcChild.Height = Math.Max(arrangeLength, childDesiredSize.Height); 8352previousChildSize.Width = Math.Max(previousChildSize.Width, pixelHeaderSize.Width); 8359rcChild.Width = Math.Max(arrangeLength, childDesiredSize.Width); 8384previousChildSize.Height = Math.Max(previousChildSize.Height, pixelHeaderSize.Height); 8414rcChild.Height = Math.Max(arrangeLength, childDesiredSize.Height); 8420rcChild.Width = Math.Max(arrangeLength, childDesiredSize.Width); 8458rcChild.Height = Math.Max(arrangeLength, childDesiredSize.Height); 8511rcChild.Width = Math.Max(arrangeLength, childDesiredSize.Width); 9520_scrollData._maxDesiredSize.Height = Math.Max(_scrollData._maxDesiredSize.Height, stackPixelSize.Height); 9547_scrollData._maxDesiredSize.Width = Math.Max(_scrollData._maxDesiredSize.Width, stackPixelSize.Width); 10372_scrollData._maxDesiredSize.Height = Math.Max(_scrollData._maxDesiredSize.Height, stackPixelSize.Height); 10399_scrollData._maxDesiredSize.Width = Math.Max(_scrollData._maxDesiredSize.Width, stackPixelSize.Width); 11053double left = Math.Max(targetRectOffset, minPhysicalOffset); 11054targetRectSize = Math.Max(Math.Min(targetRectSize + targetRectOffset, minPhysicalOffset + viewportSize) - left, 0); 11147maxChildLength = Math.Max(maxChildLength, childSize.Height); 11151maxChildLength = Math.Max(maxChildLength, childSize.Width);
src\Framework\System\Windows\Controls\WrapPanel.cs (5)
255panelSize.U = Math.Max(curLineSize.U, panelSize.U); 261panelSize.U = Math.Max(sz.U, panelSize.U); 269curLineSize.V = Math.Max(sz.V, curLineSize.V); 274panelSize.U = Math.Max(curLineSize.U, panelSize.U); 329curLineSize.V = Math.Max(sz.V, curLineSize.V);
src\Framework\System\windows\Documents\CaretElement.cs (2)
414scroller.ScrollToVerticalOffset(Math.Max(0, scroller.VerticalOffset - deltaToScroll - scrollerHeight / 4)); 431scroller.ScrollToHorizontalOffset(Math.Max(0, scroller.HorizontalOffset - deltaToScroll - scrollerWidth / 4));
src\Framework\System\Windows\Documents\FixedPageStructure.cs (2)
167double absVerDistance = Math.Max(0, (pt.Y > lineResult.LayoutBox.Y) ? (pt.Y - lineResult.LayoutBox.Bottom) : (lineResult.LayoutBox.Y - pt.Y)); 168double absHorDistance = Math.Max(0, (pt.X > lineResult.LayoutBox.X) ? (pt.X - lineResult.LayoutBox.Right) : (lineResult.LayoutBox.X - pt.X));
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (1)
893double maxHeight = Math.Max(box1.Height, box2.Height);
src\Framework\System\Windows\Documents\FixedTextView.cs (2)
860double horizontalDistance = Math.Max(0, (transformedPt.X > alignmentRect.X) ? (transformedPt.X - alignmentRect.Right) : (alignmentRect.X - transformedPt.X)); 861double verticalDistance = Math.Max(0, (transformedPt.Y > alignmentRect.Y) ? (transformedPt.Y - alignmentRect.Bottom) : (alignmentRect.Y - transformedPt.Y));
src\Framework\System\Windows\Documents\Glyphs.cs (2)
171Math.Max(0, designRect.Right), 172Math.Max(0, designRect.Bottom)
src\Framework\System\Windows\Documents\ImmComposition.cs (2)
771milPointBottomRight = new Point(Math.Max(rectStart.Left, rectEnd.Left), Math.Max(rectStart.Bottom, rectEnd.Bottom));
src\Framework\System\Windows\Documents\Table.cs (1)
215get { return Math.Max(CellSpacing, 0); }
src\Framework\System\Windows\Documents\TextRangeEdit.cs (1)
2372double retValue = Math.Max(_lowerBound, value);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (3)
1713_dxr = Math.Max(_dxr, 0.0); 1736xPosAdorner = Math.Max(xPosAdorner, _columnRect.Left - this.LeftDragMax); 1748dx = Math.Max(dx, - this.LeftDragMax);
src\Framework\System\Windows\Documents\TextStore.cs (2)
870milPointBottomRight = new Point(Math.Max(rectPrev.Left, rectCur.Left), Math.Max(rectPrev.Bottom, rectCur.Bottom));
src\Framework\System\Windows\FrameworkElement.cs (28)
4065maxHeight = Math.Max(Math.Min(height, maxHeight), minHeight); 4068minHeight = Math.Max(Math.Min(maxHeight, height), minHeight); 4075maxWidth = Math.Max(Math.Min(width, maxWidth), minWidth); 4078minWidth = Math.Max(Math.Min(maxWidth, width), minWidth); 4343Math.Max(availableSize.Width - marginWidth, 0), 4344Math.Max(availableSize.Height - marginHeight, 0)); 4392frameworkAvailableSize.Width = Math.Max(mm.minWidth, Math.Min(frameworkAvailableSize.Width, mm.maxWidth)); 4393frameworkAvailableSize.Height = Math.Max(mm.minHeight, Math.Min(frameworkAvailableSize.Height, mm.maxHeight)); 4406Math.Max(desiredSize.Width, mm.minWidth), 4407Math.Max(desiredSize.Height, mm.minHeight)); 4473ltd.TransformedUnroundedDS = new Size(Math.Max(0, clippedDesiredWidth), Math.Max(0, clippedDesiredHeight)); 4520return new Size(Math.Max(0, clippedDesiredWidth), Math.Max(0, clippedDesiredHeight)); 4582arrangeSize.Width = Math.Max(0, arrangeSize.Width - marginWidth); 4583arrangeSize.Height = Math.Max(0, arrangeSize.Height - marginHeight); 4591transformedUnroundedDS.Width = Math.Max(0, transformedUnroundedDS.Width - marginWidth); 4592transformedUnroundedDS.Height = Math.Max(0, transformedUnroundedDS.Height- marginHeight); 4601unclippedDesiredSize = new Size(Math.Max(0, this.DesiredSize.Width - marginWidth), 4602Math.Max(0, this.DesiredSize.Height - marginHeight)); 4607unclippedDesiredSize.Width = Math.Max(transformedUnroundedDS.Width, unclippedDesiredSize.Width); 4608unclippedDesiredSize.Height = Math.Max(transformedUnroundedDS.Height, unclippedDesiredSize.Height); 4695double effectiveMaxWidth = Math.Max(unclippedDesiredSize.Width, mm.maxWidth); 4702double effectiveMaxHeight = Math.Max(unclippedDesiredSize.Height, mm.maxHeight); 4766Size clientSize = new Size(Math.Max(0, finalRect.Width - marginWidth), 4767Math.Max(0, finalRect.Height - marginHeight)); 4934Size clippingSize = new Size(Math.Max(0, layoutSlotSize.Width - marginWidth), 4935Math.Max(0, layoutSlotSize.Height - marginHeight));
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
2605rect.Height = Math.Min(Math.Max(before, 0.0d), rect.Height); 2609double height = Math.Min(Math.Max(after, 0.0d), rect.Height); 2757endRange = Math.Max(endRange, _horizontalBaseline); 2779endRange = Math.Max(endRange, _verticalBaseline);
src\Framework\System\Windows\Shapes\Ellipse.cs (3)
105width = Math.Max(width, height); 128Math.Max(0, finalSize.Width - penThickness), // Width 129Math.Max(0, finalSize.Height - penThickness)); // Height
src\Framework\System\Windows\Shapes\Rectangle.cs (3)
157width = Math.Max(width, height); 181Math.Max(0, finalSize.Width - penThickness), // Width 182Math.Max(0, finalSize.Height - penThickness)); // Height
src\Framework\System\Windows\Shapes\Shape.cs (4)
592xScale = Math.Max(availableSize.Width - strokeThickness, 0); 593yScale = Math.Max(availableSize.Height - strokeThickness, 0); 720return new Size(Math.Max(bounds.Right, 0), 721Math.Max(bounds.Bottom, 0));
src\Framework\System\Windows\Shell\TaskbarItemInfo.cs (1)
103progressValue = Math.Max(progressValue, 0);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (4)
1401deviceGlassThickness.Top = Math.Max(0, deviceGlassThickness.Top); 1406deviceGlassThickness.Left = Math.Max(0, deviceGlassThickness.Left); 1411deviceGlassThickness.Bottom = Math.Max(0, deviceGlassThickness.Bottom); 1416deviceGlassThickness.Right = Math.Max(0, deviceGlassThickness.Right);
src\Framework\System\Windows\Window.cs (18)
1877frameworkAvailableSize.Width = Math.Max(mm.minWidth, Math.Min(frameworkAvailableSize.Width, mm.maxWidth)); 1878frameworkAvailableSize.Height = Math.Max(mm.minHeight, Math.Min(frameworkAvailableSize.Height, mm.maxHeight)); 1885Math.Max(desiredSize.Width, mm.minWidth), 1886Math.Max(desiredSize.Height, mm.minHeight)); 1907arrangeBounds.Width = Math.Max(mm.minWidth, Math.Min(arrangeBounds.Width, mm.maxWidth)); 1908arrangeBounds.Height = Math.Max(mm.minHeight, Math.Min(arrangeBounds.Height, mm.maxHeight)); 1942childArrangeBounds.Width = Math.Max(0.0, arrangeBounds.Width - frameSize.Width); 1943childArrangeBounds.Height = Math.Max(0.0, arrangeBounds.Height - frameSize.Height); 3494childConstraint.Width = ((constraint.Width == Double.PositiveInfinity) ? Double.PositiveInfinity : Math.Max(0.0, (constraint.Width - frameSize.Width))); 3495childConstraint.Height = ((constraint.Height == Double.PositiveInfinity) ? Double.PositiveInfinity : Math.Max(0.0, (constraint.Height - frameSize.Height))); 3539maxWidthDeviceUnits = Math.Max(_trackMaxWidthDeviceUnits, _windowMaxWidthDeviceUnits); 3540maxHeightDeviceUnits = Math.Max(_trackMaxHeightDeviceUnits, _windowMaxHeightDeviceUnits); 3549mm.minWidth = Math.Max(this.MinWidth, minSizeLogicalUnits.X); 3571mm.minHeight = Math.Max(this.MinHeight, minSizeLogicalUnits.Y); 4896_windowMaxWidthDeviceUnits = Math.Max(_windowMaxWidthDeviceUnits, windowSize.X); 4897_windowMaxHeightDeviceUnits = Math.Max(_windowMaxHeightDeviceUnits, windowSize.Y); 8135return new Size(Math.Max(0.0, pt.X), Math.Max(0.0, pt.Y));
PresentationFramework.Aero (8)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
458childArrangeRect.Width = Math.Max(0d, finalSize.Width - 4.0); 459childArrangeRect.Height = Math.Max(0d, finalSize.Height - 4.0);
Microsoft\Windows\Themes\ScrollChrome.cs (1)
477bounds.Width = Math.Max(0.0, bounds.Width - 1.0);
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (5)
195childWidth = Math.Max(0.0, childWidth - padding.Left - padding.Right); 200childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 235double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right); 236double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom); 302return Math.Max(0.0, d);
PresentationFramework.Classic (7)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
608Math.Max(0.0, rt.Width - thick.Left - thick.Right), 609Math.Max(0.0, rt.Height - thick.Top - thick.Bottom));
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (5)
195childWidth = Math.Max(0.0, childWidth - padding.Left - padding.Right); 200childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 235double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right); 236double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom); 302return Math.Max(0.0, d);
PresentationFramework.Luna (12)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
375childArrangeRect.Width = Math.Max(0d, finalSize.Width - sideThickness2); 376childArrangeRect.Height = Math.Max(0d, finalSize.Height - sideThickness2);
Microsoft\Windows\Themes\ScrollChrome.cs (1)
316bounds.Width = Math.Max(0.0, bounds.Width - 1.0);
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
222Math.Max(0, bounds.Width - thickness.Left - thickness.Right), 223Math.Max(0, bounds.Height - thickness.Top - thickness.Bottom)); 464Math.Max(0.0, rt.Width - thick.Left - thick.Right), 465Math.Max(0.0, rt.Height - thick.Top - thick.Bottom));
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (5)
195childWidth = Math.Max(0.0, childWidth - padding.Left - padding.Right); 200childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 235double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right); 236double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom); 302return Math.Max(0.0, d);
PresentationFramework.Royale (11)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
333childArrangeRect.Width = Math.Max(0d, finalSize.Width - sideThickness2); 334childArrangeRect.Height = Math.Max(0d, finalSize.Height - sideThickness2);
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
222Math.Max(0, bounds.Width - thickness.Left - thickness.Right), 223Math.Max(0, bounds.Height - thickness.Top - thickness.Bottom)); 464Math.Max(0.0, rt.Width - thick.Left - thick.Right), 465Math.Max(0.0, rt.Height - thick.Top - thick.Bottom));
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (5)
195childWidth = Math.Max(0.0, childWidth - padding.Left - padding.Right); 200childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 235double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right); 236double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom); 302return Math.Max(0.0, d);
System.Activities.Presentation (33)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (9)
178double lastChildWidth = Math.Max(0, this.LastChildWidth); 180double availableWidth = Math.Max(0, availableSize.Width - lastChildWidth - indent); 200actualSize.Height = Math.Max(actualSize.Height, child.DesiredSize.Height); 211double lastChildWidth = Math.Max(0, this.LastChildWidth); 213double availableWidth = Math.Max(0, finalSize.Width - lastChildWidth - indent); 225child.Arrange(new Rect(Math.Max(0, finalSize.Width - lastChildWidth), 0, lastChildWidth, finalSize.Height)); 234availableWidth = Math.Max(0, availableWidth); 248double dividerRight = Math.Max(0, this.LastChildWidth); 266Math.Max(dividerLeft - firstChildWidth, 0),
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\SharedPropertyValueColumnWidthContainer.cs (1)
190return Math.Max(min, Math.Min(max, value));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (6)
952int steps = (int)Math.Max(Math.Abs(sub.X / margin.Width), Math.Abs(sub.Y / margin.Height)); //one of the values will be null 1147(p.X.IsNoLessThan(Math.Min(this.point1.X, this.point2.X)) && p.X.IsNoGreaterThan(Math.Max(this.point1.X, this.point2.X))) : 1148(p.Y.IsNoLessThan(Math.Min(this.point1.Y, this.point2.Y)) && p.Y.IsNoGreaterThan(Math.Max(this.point1.Y, this.point2.Y))); 1238if (vertical.A.X < Math.Min(horizontal.A.X, horizontal.B.X) || vertical.A.X > Math.Max(horizontal.A.X, horizontal.B.X)) 1243if (horizontal.A.Y < Math.Min(vertical.A.Y, vertical.B.Y) || horizontal.A.Y > Math.Max(vertical.A.Y, vertical.B.Y)) 1261return k.IsNoLessThan(Math.Min(k1, k2)) && k.IsNoGreaterThan(Math.Max(k1, k2));
System.Activities.Presentation\System\Activities\Presentation\MiniMap\MiniMapControl.xaml.cs (2)
120double left = Math.Max(value - this.mousePosition.X, 0.0); 134double top = Math.Max(value - this.mousePosition.Y, 0.0);
System.Activities.Presentation\System\Activities\Presentation\View\BreadCrumbTextConverter.cs (2)
19set { this.pixelsPerChar = Math.Max(5.0, value); } 58actualDisplayNameLength = (int)Math.Max(MaxDisplayNameLength, actualControlWidth / pixelsPerChar);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
1624double y = Math.Min(maxValue, Math.Max(minValue, Math.Min(y1, y2))); 1667y = Math.Min(maxValue, Math.Max(minValue, Math.Min(y1, y2)));
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (3)
299pos = Math.Max(0.0, pos); 419offsetPlusX = Math.Max(offsetPlusX, pos.X + child.DesiredSize.Width); 420offsetPlusY = Math.Max(offsetPlusY, pos.Y + child.DesiredSize.Height);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (2)
477size.Width = Math.Min(Math.Max(MinWidth, current.X), MaxWidth); 496size.Height = Math.Min(Math.Max(MinHeight, current.Y), MaxHeight);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowResizeGrip.cs (2)
60newSize.Width = Math.Min(Math.Max(this.parent.MinWidth, currentPosition.X), this.parent.MaxWidth); 61newSize.Height = Math.Min(Math.Max(this.parent.MinHeight, currentPosition.Y), this.parent.MaxHeight);
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (4)
433this.blockHeight = Math.Max(this.blockHeight, textBlock.MinHeight); 436this.blockWidth = Math.Max(this.blockWidth, textBlock.MinWidth); 528this.blockWidth = Math.Max(this.ActualWidth - 8, 0); //8 is the margin 531this.blockWidth = Math.Max(this.blockWidth - 16, 0); //give 16 for error icon
System.Data (14)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (5)
178double lastChildWidth = Math.Max(0, this.LastChildWidth); 211double lastChildWidth = Math.Max(0, this.LastChildWidth); 234availableWidth = Math.Max(0, availableWidth); 248double dividerRight = Math.Max(0, this.LastChildWidth); 266Math.Max(dividerLeft - firstChildWidth, 0),
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\SharedPropertyValueColumnWidthContainer.cs (1)
190return Math.Max(min, Math.Min(max, value));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (1)
1261return k.IsNoLessThan(Math.Min(k1, k2)) && k.IsNoGreaterThan(Math.Max(k1, k2));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\BreadCrumbTextConverter.cs (2)
19set { this.pixelsPerChar = Math.Max(5.0, value); } 58actualDisplayNameLength = (int)Math.Max(MaxDisplayNameLength, actualControlWidth / pixelsPerChar);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
1624double y = Math.Min(maxValue, Math.Max(minValue, Math.Min(y1, y2))); 1667y = Math.Min(maxValue, Math.Max(minValue, Math.Min(y1, y2)));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (1)
299pos = Math.Max(0.0, pos);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
531this.blockWidth = Math.Max(this.blockWidth - 16, 0); //give 16 for error icon
fx\src\data\System\Data\Common\DoubleStorage.cs (1)
116max=Math.Max(values[record], max);
System.Web.DataVisualization (69)
Common\ChartTypes\AreaChart.cs (2)
982 float maxX = (float)Math.Max(firstPoint.xPosition, secondPoint.xPosition); 983 float maxY = (float)Math.Max(firstPoint.yPosition, secondPoint.yPosition);
Common\ChartTypes\BarChart.cs (2)
2284 double yMax1 = Math.Max(point1.yPosition, point1.height); 2286 double yMax2 = Math.Max(point2.yPosition, point2.height);
Common\ChartTypes\BoxPlotChart.cs (2)
579 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y; 1366 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y;
Common\ChartTypes\BubbleChart.cs (6)
230 _maxAll = Math.Max(_maxAll, CommonElements.ParseDouble(ser[CustomPropertyName.BubbleScaleMax])); 287maxSer = Math.Max(maxSer, point.YValues[1]); 369 maxAll = Math.Max(maxAll, CommonElements.ParseDouble(ser[CustomPropertyName.BubbleScaleMax])); 409maxSer = Math.Max(maxSer, point.YValues[1]); 414maximum = Math.Max(maximum, point.YValues[0]); 419maximum = Math.Max(maximum, point.XValue);
Common\ChartTypes\ErrorBarChart.cs (2)
597 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y; 1361 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y;
Common\ChartTypes\FunnelChart.cs (1)
2655 this._yValueMax = Math.Max(this._yValueMax, yValue);
Common\ChartTypes\RangeChart.cs (2)
1107 float maxX = (float)Math.Max(firstPoint.xPosition, secondPoint.xPosition); 1108 float maxY = (float)Math.Max(firstPoint.yPosition, secondPoint.yPosition);
Common\ChartTypes\StockChart.cs (2)
468 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y; 1282 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y;
Common\DataManager\DataManager.cs (19)
329 returnValue = Math.Max(returnValue, seriesPoint.YValues[valueIndex]); 359returnValue = Math.Max(returnValue, seriesPoint.YValues[0] + BubbleChart.AxisScaleBubbleSize(area.Common, area, seriesPoint.YValues[1], true)); 363returnValue = Math.Max(returnValue, seriesPoint.YValues[0]); 394returnValue = Math.Max(returnValue, seriesPoint.XValue + BubbleChart.AxisScaleBubbleSize(area.Common, area, seriesPoint.XValue, false)); 398returnValue = Math.Max(returnValue, seriesPoint.XValue); 463 returnValue = Math.Max(returnValue, y); 483 returnValue = Math.Max(returnValue, seriesPoint.XValue); 503 max = Math.Max(max, seriesPoint.XValue); 533 max = Math.Max(max, yValue); 565 max = Math.Max(max, y); 598 max = Math.Max(max, y); 641 noStackedMax = Math.Max(noStackedMax,this._series[seriesName].Points[pointIndex].YValues[valueIndex]); 645 stackedMax = Math.Max(stackedMax, noStackedMax); 646 returnValue = Math.Max(returnValue, stackedMax); 689noStackedMax = Math.Max(noStackedMax, this._series[seriesName].Points[pointIndex].YValues[valueIndex]); 693 maxValue = Math.Max(maxValue, noStackedMax); 694 returnValue = Math.Max(returnValue, maxValue); 721 returnValue = Math.Max(returnValue, doubleIndexValue); 1009 returnValue = Math.Max(returnValue,
Common\DataManager\DataSeries.cs (1)
1280keywordValue = Math.Max(keywordValue, point.YValues[yValueIndex]);
Common\Formulas\TechGeneralIndicators.cs (2)
188 trueRange[index-1] = Math.Max( Math.Max( distanceOne, distanceTwo ), distanceTree );
Common\General\Axis.cs (8)
5303rect.Width = (float)Math.Max(fromPosition, toPosition) - rect.X; 5309rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 5412rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 5665rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 5780labelFarOffset = (float)Math.Max(labelFarOffset, (fromPosition + toPosition) / 2f + axisLabelSize.Width / 2f); 5791labelFarOffset = (float)Math.Max(labelFarOffset, (fromPosition + toPosition) / 2f + width * 1.1f); 5809labelFarOffset = (float)Math.Max(labelFarOffset, (fromPosition + toPosition) / 2f + axisLabelSize.Height / 2f); 5819labelFarOffset = (float)Math.Max(labelFarOffset, (fromPosition + toPosition) / 2f + height * 1.1f);
Common\General\AxisScaleBreaks.cs (1)
1032 segmentMaxValue[segmentIndex] = Math.Max(segmentMaxValue[segmentIndex], dataPoint.YValues[yValueIndex]);
Common\General\AxisScaleSegments.cs (2)
698 breakPosition.Height = (float)Math.Max(from, to); 703 breakPosition.Width = (float)Math.Max(from, to);;
Common\General\ChartArea3D.cs (2)
1983 double yMax1 = Math.Max(point1.yPosition, point1.height); 1985 double yMax2 = Math.Max(point2.yPosition, point2.height);
Common\General\ChartAreaAxes.cs (3)
1141 stackMaxBarColumn = Math.Max(stackMaxBarColumn, stackMaxBarColumnForGroup); 1143 stackMaxArea = Math.Max(stackMaxArea, stackMaxAreaForGroup); 1148 autoMaximum = Math.Max(stackMaxBarColumn,stackMaxArea);
Common\General\DataManipulator.cs (4)
606 double toX = Math.Max(fromXValue, toXValue); 621 toX = Math.Max(toX, ser.Points[ser.Points.Count - 1].XValue); 2859 Math.Max(pointTempValues[functionInfo.outputIndex], point.YValues[funcIndex-1]); 2903 Math.Max(pointTempValues[functionInfo.outputIndex], point.YValues[funcIndex-1]);
Common\General\Label.cs (5)
272 double toX = Math.Max(min, max); 1747rect.Width = (float)Math.Max(fromPosition, toPosition) - rect.X; 1760rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 2261rect.Width = (float)Math.Max(fromPosition, toPosition) - rect.X; 2278rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y;
Common\General\SmartLabels.cs (1)
810 float maxMove = (float)Math.Max(smartLabelStyle.MinMovingDistance, smartLabelStyle.MaxMovingDistance);
Common\General\StripLine.cs (2)
370 rect.Height = (float)Math.Max(pos1, pos2) - rect.Y; 380 rect.Width = (float)Math.Max(pos1, pos2) - rect.X;
System.Windows.Forms (4)
winforms\Managed\System\WinForms\Form.cs (1)
2077value = Math.Max(value, .50f);
winforms\Managed\System\WinForms\NumericUpDown.cs (1)
823int numDigits = (int)Math.Floor(Math.Log(Math.Max(-(double)Minimum, (double)Maximum), baseSize));
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
4535labelRatio = Math.Max(Math.Min(labelRatio, 9), 1.1);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
755value = Math.Max(value, .50f);
System.Windows.Forms.DataVisualization (67)
Common\ChartTypes\AreaChart.cs (2)
982 float maxX = (float)Math.Max(firstPoint.xPosition, secondPoint.xPosition); 983 float maxY = (float)Math.Max(firstPoint.yPosition, secondPoint.yPosition);
Common\ChartTypes\BarChart.cs (2)
2284 double yMax1 = Math.Max(point1.yPosition, point1.height); 2286 double yMax2 = Math.Max(point2.yPosition, point2.height);
Common\ChartTypes\BoxPlotChart.cs (2)
579 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y; 1366 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y;
Common\ChartTypes\BubbleChart.cs (6)
230 _maxAll = Math.Max(_maxAll, CommonElements.ParseDouble(ser[CustomPropertyName.BubbleScaleMax])); 287maxSer = Math.Max(maxSer, point.YValues[1]); 369 maxAll = Math.Max(maxAll, CommonElements.ParseDouble(ser[CustomPropertyName.BubbleScaleMax])); 409maxSer = Math.Max(maxSer, point.YValues[1]); 414maximum = Math.Max(maximum, point.YValues[0]); 419maximum = Math.Max(maximum, point.XValue);
Common\ChartTypes\ErrorBarChart.cs (2)
597 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y; 1361 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y;
Common\ChartTypes\FunnelChart.cs (1)
2655 this._yValueMax = Math.Max(this._yValueMax, yValue);
Common\ChartTypes\RangeChart.cs (2)
1107 float maxX = (float)Math.Max(firstPoint.xPosition, secondPoint.xPosition); 1108 float maxY = (float)Math.Max(firstPoint.yPosition, secondPoint.yPosition);
Common\ChartTypes\StockChart.cs (2)
468 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y; 1282 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y;
Common\DataManager\DataManager.cs (19)
329 returnValue = Math.Max(returnValue, seriesPoint.YValues[valueIndex]); 359returnValue = Math.Max(returnValue, seriesPoint.YValues[0] + BubbleChart.AxisScaleBubbleSize(area.Common, area, seriesPoint.YValues[1], true)); 363returnValue = Math.Max(returnValue, seriesPoint.YValues[0]); 394returnValue = Math.Max(returnValue, seriesPoint.XValue + BubbleChart.AxisScaleBubbleSize(area.Common, area, seriesPoint.XValue, false)); 398returnValue = Math.Max(returnValue, seriesPoint.XValue); 463 returnValue = Math.Max(returnValue, y); 483 returnValue = Math.Max(returnValue, seriesPoint.XValue); 503 max = Math.Max(max, seriesPoint.XValue); 533 max = Math.Max(max, yValue); 565 max = Math.Max(max, y); 598 max = Math.Max(max, y); 641 noStackedMax = Math.Max(noStackedMax,this._series[seriesName].Points[pointIndex].YValues[valueIndex]); 645 stackedMax = Math.Max(stackedMax, noStackedMax); 646 returnValue = Math.Max(returnValue, stackedMax); 689noStackedMax = Math.Max(noStackedMax, this._series[seriesName].Points[pointIndex].YValues[valueIndex]); 693 maxValue = Math.Max(maxValue, noStackedMax); 694 returnValue = Math.Max(returnValue, maxValue); 721 returnValue = Math.Max(returnValue, doubleIndexValue); 1009 returnValue = Math.Max(returnValue,
Common\DataManager\DataSeries.cs (1)
1280keywordValue = Math.Max(keywordValue, point.YValues[yValueIndex]);
Common\Formulas\TechGeneralIndicators.cs (2)
188 trueRange[index-1] = Math.Max( Math.Max( distanceOne, distanceTwo ), distanceTree );
Common\General\Axis.cs (8)
5303rect.Width = (float)Math.Max(fromPosition, toPosition) - rect.X; 5309rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 5412rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 5665rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 5780labelFarOffset = (float)Math.Max(labelFarOffset, (fromPosition + toPosition) / 2f + axisLabelSize.Width / 2f); 5791labelFarOffset = (float)Math.Max(labelFarOffset, (fromPosition + toPosition) / 2f + width * 1.1f); 5809labelFarOffset = (float)Math.Max(labelFarOffset, (fromPosition + toPosition) / 2f + axisLabelSize.Height / 2f); 5819labelFarOffset = (float)Math.Max(labelFarOffset, (fromPosition + toPosition) / 2f + height * 1.1f);
Common\General\AxisScaleBreaks.cs (1)
1032 segmentMaxValue[segmentIndex] = Math.Max(segmentMaxValue[segmentIndex], dataPoint.YValues[yValueIndex]);
Common\General\AxisScaleSegments.cs (2)
698 breakPosition.Height = (float)Math.Max(from, to); 703 breakPosition.Width = (float)Math.Max(from, to);;
Common\General\ChartAreaAxes.cs (3)
1141 stackMaxBarColumn = Math.Max(stackMaxBarColumn, stackMaxBarColumnForGroup); 1143 stackMaxArea = Math.Max(stackMaxArea, stackMaxAreaForGroup); 1148 autoMaximum = Math.Max(stackMaxBarColumn,stackMaxArea);
Common\General\DataManipulator.cs (4)
606 double toX = Math.Max(fromXValue, toXValue); 621 toX = Math.Max(toX, ser.Points[ser.Points.Count - 1].XValue); 2859 Math.Max(pointTempValues[functionInfo.outputIndex], point.YValues[funcIndex-1]); 2903 Math.Max(pointTempValues[functionInfo.outputIndex], point.YValues[funcIndex-1]);
Common\General\Label.cs (5)
272 double toX = Math.Max(min, max); 1747rect.Width = (float)Math.Max(fromPosition, toPosition) - rect.X; 1760rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 2261rect.Width = (float)Math.Max(fromPosition, toPosition) - rect.X; 2278rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y;
Common\General\SmartLabels.cs (1)
810 float maxMove = (float)Math.Max(smartLabelStyle.MinMovingDistance, smartLabelStyle.MaxMovingDistance);
Common\General\StripLine.cs (2)
370 rect.Height = (float)Math.Max(pos1, pos2) - rect.Y; 380 rect.Width = (float)Math.Max(pos1, pos2) - rect.X;
System.Workflow.ComponentModel (2)
AuthoringOM\Design\DesignerWidgets.cs (2)
3461stretchFactor = Math.Max(stretchFactor, ((double)previewedActivityImage.Height) / maxBitmapSize.Height); 3462stretchFactor = Math.Max(stretchFactor, 1.3f);
WindowsBase (19)
Base\System\Windows\Rect.cs (12)
83_width = Math.Max(Math.Max(point1._x, point2._x) - _x, 0); 84_height = Math.Max(Math.Max(point1._y, point2._y) - _y, 0); 499double left = Math.Max(Left, rect.Left); 500double top = Math.Max(Top, rect.Top); 503_width = Math.Max(Math.Min(Right, rect.Right) - left, 0); 504_height = Math.Max(Math.Min(Bottom, rect.Bottom) - top, 0); 544double maxRight = Math.Max(Right, rect.Right); 545_width = Math.Max(maxRight - left, 0); 556double maxBottom = Math.Max(Bottom, rect.Bottom); 557_height = Math.Max(maxBottom - top, 0);
Base\System\Windows\Vector.cs (1)
72this /= Math.Max(Math.Abs(_x),Math.Abs(_y));
Shared\MS\Internal\MatrixUtil.cs (6)
116rect._width = Math.Max(Math.Max(point0.X, point1.X), Math.Max(point2.X, point3.X)) - rect._x; 117rect._height = Math.Max(Math.Max(point0.Y, point1.Y), Math.Max(point2.Y, point3.Y)) - rect._y;