25 references to MaxWidth
PresentationFramework (25)
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (1)
1911childMeasureWidth = Math.Min(childMeasureWidth, column.MaxWidth);
src\Framework\System\Windows\Controls\DataGridColumn.cs (4)
274double displayValue = DataGridHelper.CoerceToMinMax(changedWidth.DesiredValue, column.MinWidth, column.MaxWidth); 403newDisplayValue = (DoubleUtil.IsNaN(newDisplayValue) ? newDisplayValue : DataGridHelper.CoerceToMinMax(newDisplayValue, column.MinWidth, column.MaxWidth)); 490double maxWidth = column.MaxWidth; 550double maxWidth = MaxWidth;
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (19)
923totalMaxWidths += column.MaxWidth; 971double columnMaxWidth = column.MaxWidth; 1196double displayValue = DataGridHelper.CoerceToMinMax(DoubleUtil.IsNaN(width.DesiredValue) ? minWidth : width.DesiredValue, minWidth, column.MaxWidth); 1259double maxWidth = changedColumn.MaxWidth; 1365double maxWidth = column.MaxWidth; 1396double newDesiredValue = DataGridHelper.CoerceToMinMax(width.DesiredValue, changedColumn.MinWidth, changedColumn.MaxWidth); 1417sumOfMaxWidths += column.MaxWidth; 1513else if (DoubleUtil.GreaterThan(expectedRezingColumnWidth, resizingColumn.MaxWidth)) 1515horizontalChange = resizingColumn.MaxWidth - resizingColumnWidth.DisplayValue; 1788double maxColumnResizeWidth = expandBeyondDesiredWidth ? column.MaxWidth : Math.Min(width.DesiredValue, column.MaxWidth); 1871if (DoubleUtil.LessThan(width.DisplayValue, column.MaxWidth)) 1874double lagRatio = (column.MaxWidth - width.DisplayValue) / width.Value; 1920else if (column.Width.IsStar && CanColumnParticipateInResize(column) && DoubleUtil.LessThan(width.DisplayValue, column.MaxWidth)) 1923column.UpdateWidthForStarColumn(Math.Min(columnDesiredWidth, column.MaxWidth), columnDesiredWidth, columnDesiredWidth / perStarWidth); 1936double columnDisplayWidth = DataGridHelper.CoerceToMinMax(width.DisplayValue + widthDelta, column.MinWidth, column.MaxWidth); 1996sumOfStarMaxWidths += column.MaxWidth; 2076double columnMaxWidth = column.MaxWidth; 2112if (DoubleUtil.LessThan(width.DisplayValue, Math.Min(width.DesiredValue, column.MaxWidth)))
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
923columnEstimatedWidth = Math.Min(columnEstimatedWidth, column.MaxWidth);