26 references to MaxWidth
PresentationFramework (26)
System\Windows\Controls\DataGridCellsPanel.cs (1)
1900childMeasureWidth = Math.Min(childMeasureWidth, column.MaxWidth);
System\Windows\Controls\DataGridColumn.cs (5)
270double displayValue = DataGridHelper.CoerceToMinMax(changedWidth.DesiredValue, column.MinWidth, column.MaxWidth); 399newDisplayValue = (double.IsNaN(newDisplayValue) ? newDisplayValue : DataGridHelper.CoerceToMinMax(newDisplayValue, column.MinWidth, column.MaxWidth)); 486double maxWidth = column.MaxWidth; 546double maxWidth = MaxWidth; 1486return width.DisplayValue >= this.MinWidth && width.DisplayValue <= this.MaxWidth;
System\Windows\Controls\DataGridColumnCollection.cs (19)
917totalMaxWidths += column.MaxWidth; 965double columnMaxWidth = column.MaxWidth; 1187double displayValue = DataGridHelper.CoerceToMinMax(double.IsNaN(width.DesiredValue) ? minWidth : width.DesiredValue, minWidth, column.MaxWidth); 1250double maxWidth = changedColumn.MaxWidth; 1356double maxWidth = column.MaxWidth; 1387double newDesiredValue = DataGridHelper.CoerceToMinMax(width.DesiredValue, changedColumn.MinWidth, changedColumn.MaxWidth); 1408sumOfMaxWidths += column.MaxWidth; 1504else if (DoubleUtil.GreaterThan(expectedRezingColumnWidth, resizingColumn.MaxWidth)) 1506horizontalChange = resizingColumn.MaxWidth - resizingColumnWidth.DisplayValue; 1779double maxColumnResizeWidth = expandBeyondDesiredWidth ? column.MaxWidth : Math.Min(width.DesiredValue, column.MaxWidth); 1862if (DoubleUtil.LessThan(width.DisplayValue, column.MaxWidth)) 1865double lagRatio = (column.MaxWidth - width.DisplayValue) / width.Value; 1911else if (column.Width.IsStar && CanColumnParticipateInResize(column) && DoubleUtil.LessThan(width.DisplayValue, column.MaxWidth)) 1914column.UpdateWidthForStarColumn(Math.Min(columnDesiredWidth, column.MaxWidth), columnDesiredWidth, columnDesiredWidth / perStarWidth); 1927double columnDisplayWidth = DataGridHelper.CoerceToMinMax(width.DisplayValue + widthDelta, column.MinWidth, column.MaxWidth); 1987sumOfStarMaxWidths += column.MaxWidth; 2067double columnMaxWidth = column.MaxWidth; 2103if (DoubleUtil.LessThan(width.DisplayValue, Math.Min(width.DesiredValue, column.MaxWidth)))
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
913columnEstimatedWidth = Math.Min(columnEstimatedWidth, column.MaxWidth);