26 references to MaxWidth
PresentationFramework (26)
System\Windows\Controls\DataGridCellsPanel.cs (1)
1899childMeasureWidth = Math.Min(childMeasureWidth, column.MaxWidth);
System\Windows\Controls\DataGridColumn.cs (5)
269double displayValue = DataGridHelper.CoerceToMinMax(changedWidth.DesiredValue, column.MinWidth, column.MaxWidth); 398newDisplayValue = (double.IsNaN(newDisplayValue) ? newDisplayValue : DataGridHelper.CoerceToMinMax(newDisplayValue, column.MinWidth, column.MaxWidth)); 485double maxWidth = column.MaxWidth; 545double maxWidth = MaxWidth; 1485return width.DisplayValue >= this.MinWidth && width.DisplayValue <= this.MaxWidth;
System\Windows\Controls\DataGridColumnCollection.cs (19)
916totalMaxWidths += column.MaxWidth; 964double columnMaxWidth = column.MaxWidth; 1186double displayValue = DataGridHelper.CoerceToMinMax(double.IsNaN(width.DesiredValue) ? minWidth : width.DesiredValue, minWidth, column.MaxWidth); 1249double maxWidth = changedColumn.MaxWidth; 1355double maxWidth = column.MaxWidth; 1386double newDesiredValue = DataGridHelper.CoerceToMinMax(width.DesiredValue, changedColumn.MinWidth, changedColumn.MaxWidth); 1407sumOfMaxWidths += column.MaxWidth; 1503else if (DoubleUtil.GreaterThan(expectedRezingColumnWidth, resizingColumn.MaxWidth)) 1505horizontalChange = resizingColumn.MaxWidth - resizingColumnWidth.DisplayValue; 1778double maxColumnResizeWidth = expandBeyondDesiredWidth ? column.MaxWidth : Math.Min(width.DesiredValue, column.MaxWidth); 1861if (DoubleUtil.LessThan(width.DisplayValue, column.MaxWidth)) 1864double lagRatio = (column.MaxWidth - width.DisplayValue) / width.Value; 1910else if (column.Width.IsStar && CanColumnParticipateInResize(column) && DoubleUtil.LessThan(width.DisplayValue, column.MaxWidth)) 1913column.UpdateWidthForStarColumn(Math.Min(columnDesiredWidth, column.MaxWidth), columnDesiredWidth, columnDesiredWidth / perStarWidth); 1926double columnDisplayWidth = DataGridHelper.CoerceToMinMax(width.DisplayValue + widthDelta, column.MinWidth, column.MaxWidth); 1986sumOfStarMaxWidths += column.MaxWidth; 2066double columnMaxWidth = column.MaxWidth; 2102if (DoubleUtil.LessThan(width.DisplayValue, Math.Min(width.DesiredValue, column.MaxWidth)))
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
912columnEstimatedWidth = Math.Min(columnEstimatedWidth, column.MaxWidth);