51 references to DesiredValue
PresentationFramework (51)
System\Windows\Controls\DataGridColumn.cs (7)
269
double displayValue = DataGridHelper.CoerceToMinMax(changedWidth.
DesiredValue
, column.MinWidth, column.MaxWidth);
270
column.SetWidthInternal(new DataGridLength(changedWidth.Value, changedWidth.UnitType, changedWidth.
DesiredValue
, displayValue));
396
double newDesiredValue = CoerceDesiredOrDisplayWidthValue(width.Value, width.
DesiredValue
, width.UnitType);
552
if (double.IsNaN(width.
DesiredValue
) ||
553
DoubleUtil.LessThan(width.
DesiredValue
, pixelWidth))
561
double originalDesiredValue = DataGridHelper.CoerceToMinMax(width.
DesiredValue
, minWidth, maxWidth);
595
!DoubleUtil.AreClose(desiredWidth, width.
DesiredValue
) ||
System\Windows\Controls\DataGridColumnCollection.cs (33)
809
!DoubleUtil.AreClose(width.
DesiredValue
, 0.0))
811
perStarWidth = width.
DesiredValue
/ width.Value;
1186
double displayValue = DataGridHelper.CoerceToMinMax(double.IsNaN(width.
DesiredValue
) ? minWidth : width.
DesiredValue
, minWidth, column.MaxWidth);
1189
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, displayValue));
1214
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, minWidth));
1225
else if (DoubleUtil.GreaterThan(oldMinWidth, width.
DesiredValue
))
1227
double displayValue = Math.Max(width.
DesiredValue
, minWidth);
1233
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, displayValue));
1257
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, maxWidth));
1265
else if (DoubleUtil.LessThan(oldMaxWidth, width.
DesiredValue
))
1267
double displayValue = Math.Min(width.
DesiredValue
, maxWidth);
1275
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, displayValue));
1306
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, minWidth + leftOverSpace));
1356
if (DoubleUtil.GreaterThan(width.
DesiredValue
, width.DisplayValue) &&
1359
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, Math.Min(width.
DesiredValue
, maxWidth)));
1372
if (DoubleUtil.GreaterThan(width.
DesiredValue
, oldWidth.DisplayValue))
1374
double nonRetrievableSpace = TakeAwayWidthFromColumns(changedColumn, width.
DesiredValue
- oldWidth.DisplayValue, changedColumn != null);
1380
width.
DesiredValue
,
1384
else if (DoubleUtil.LessThan(width.
DesiredValue
, oldWidth.DisplayValue))
1386
double newDesiredValue = DataGridHelper.CoerceToMinMax(width.
DesiredValue
, changedColumn.MinWidth, changedColumn.MaxWidth);
1693
double columnExcessWidth = onlyShrinkToDesiredWidth ? width.DisplayValue - Math.Max(width.
DesiredValue
, column.MinWidth) : width.DisplayValue - column.MinWidth;
1704
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, width.DisplayValue - columnExcessWidth));
1778
double maxColumnResizeWidth = expandBeyondDesiredWidth ? column.MaxWidth : Math.Min(width.
DesiredValue
, column.MaxWidth);
1789
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, width.DisplayValue + columnLagWidth));
1930
double starValue = width.
DesiredValue
/ width.Value;
1935
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, columnDisplayWidth));
2067
if (DoubleUtil.LessThan(width.DisplayValue, width.
DesiredValue
) &&
2071
double lagWidth = Math.Min(width.
DesiredValue
, columnMaxWidth) - width.DisplayValue;
2102
if (DoubleUtil.LessThan(width.DisplayValue, Math.Min(width.
DesiredValue
, column.MaxWidth)))
2104
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, width.DisplayValue + perColumnGiveAwayWidth));
2368
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, width.DisplayValue - perColumnTakeAwayWidth));
System\Windows\Controls\DataGridHelper.cs (3)
265
desiredWidth = oldWidth.
DesiredValue
;
268
if (double.IsNaN(width.
DesiredValue
) ||
269
DoubleUtil.LessThan(width.
DesiredValue
, desiredWidth))
System\Windows\Controls\DataGridLength.cs (8)
129
&& ((gl1.
DesiredValue
== gl2.
DesiredValue
) || (double.IsNaN(gl1.
DesiredValue
) && double.IsNaN(gl2.
DesiredValue
)))
144
|| ((gl1.
DesiredValue
!= gl2.
DesiredValue
) && !(double.IsNaN(gl1.
DesiredValue
) && double.IsNaN(gl2.
DesiredValue
)))