26 references to MaxWidth
PresentationFramework (26)
System\Windows\Controls\DataGridCellsPanel.cs (1)
1909
childMeasureWidth = Math.Min(childMeasureWidth, column.
MaxWidth
);
System\Windows\Controls\DataGridColumn.cs (5)
273
double displayValue = DataGridHelper.CoerceToMinMax(changedWidth.DesiredValue, column.MinWidth, column.
MaxWidth
);
402
newDisplayValue = (double.IsNaN(newDisplayValue) ? newDisplayValue : DataGridHelper.CoerceToMinMax(newDisplayValue, column.MinWidth, column.
MaxWidth
));
489
double maxWidth = column.
MaxWidth
;
549
double maxWidth =
MaxWidth
;
1496
return width.DisplayValue >= this.MinWidth && width.DisplayValue <= this.
MaxWidth
;
System\Windows\Controls\DataGridColumnCollection.cs (19)
921
totalMaxWidths += column.
MaxWidth
;
969
double columnMaxWidth = column.
MaxWidth
;
1194
double displayValue = DataGridHelper.CoerceToMinMax(double.IsNaN(width.DesiredValue) ? minWidth : width.DesiredValue, minWidth, column.
MaxWidth
);
1257
double maxWidth = changedColumn.
MaxWidth
;
1363
double maxWidth = column.
MaxWidth
;
1394
double newDesiredValue = DataGridHelper.CoerceToMinMax(width.DesiredValue, changedColumn.MinWidth, changedColumn.
MaxWidth
);
1415
sumOfMaxWidths += column.
MaxWidth
;
1511
else if (DoubleUtil.GreaterThan(expectedRezingColumnWidth, resizingColumn.
MaxWidth
))
1513
horizontalChange = resizingColumn.
MaxWidth
- resizingColumnWidth.DisplayValue;
1786
double maxColumnResizeWidth = expandBeyondDesiredWidth ? column.
MaxWidth
: Math.Min(width.DesiredValue, column.
MaxWidth
);
1869
if (DoubleUtil.LessThan(width.DisplayValue, column.
MaxWidth
))
1872
double lagRatio = (column.
MaxWidth
- width.DisplayValue) / width.Value;
1918
else if (column.Width.IsStar && CanColumnParticipateInResize(column) && DoubleUtil.LessThan(width.DisplayValue, column.
MaxWidth
))
1921
column.UpdateWidthForStarColumn(Math.Min(columnDesiredWidth, column.
MaxWidth
), columnDesiredWidth, columnDesiredWidth / perStarWidth);
1934
double columnDisplayWidth = DataGridHelper.CoerceToMinMax(width.DisplayValue + widthDelta, column.MinWidth, column.
MaxWidth
);
1994
sumOfStarMaxWidths += column.
MaxWidth
;
2074
double columnMaxWidth = column.
MaxWidth
;
2110
if (DoubleUtil.LessThan(width.DisplayValue, Math.Min(width.DesiredValue, column.
MaxWidth
)))
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
923
columnEstimatedWidth = Math.Min(columnEstimatedWidth, column.
MaxWidth
);