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