51 references to DesiredValue
PresentationFramework (51)
System\Windows\Controls\DataGridColumn.cs (7)
273
double displayValue = DataGridHelper.CoerceToMinMax(changedWidth.
DesiredValue
, column.MinWidth, column.MaxWidth);
274
column.SetWidthInternal(new DataGridLength(changedWidth.Value, changedWidth.UnitType, changedWidth.
DesiredValue
, displayValue));
400
double newDesiredValue = CoerceDesiredOrDisplayWidthValue(width.Value, width.
DesiredValue
, width.UnitType);
556
if (double.IsNaN(width.
DesiredValue
) ||
557
DoubleUtil.LessThan(width.
DesiredValue
, pixelWidth))
565
double originalDesiredValue = DataGridHelper.CoerceToMinMax(width.
DesiredValue
, minWidth, maxWidth);
599
!DoubleUtil.AreClose(desiredWidth, width.
DesiredValue
) ||
System\Windows\Controls\DataGridColumnCollection.cs (33)
814
!DoubleUtil.AreClose(width.
DesiredValue
, 0.0))
816
perStarWidth = width.
DesiredValue
/ width.Value;
1194
double displayValue = DataGridHelper.CoerceToMinMax(double.IsNaN(width.
DesiredValue
) ? minWidth : width.
DesiredValue
, minWidth, column.MaxWidth);
1197
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, displayValue));
1222
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, minWidth));
1233
else if (DoubleUtil.GreaterThan(oldMinWidth, width.
DesiredValue
))
1235
double displayValue = Math.Max(width.
DesiredValue
, minWidth);
1241
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, displayValue));
1265
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, maxWidth));
1273
else if (DoubleUtil.LessThan(oldMaxWidth, width.
DesiredValue
))
1275
double displayValue = Math.Min(width.
DesiredValue
, maxWidth);
1283
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, displayValue));
1314
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, minWidth + leftOverSpace));
1364
if (DoubleUtil.GreaterThan(width.
DesiredValue
, width.DisplayValue) &&
1367
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, Math.Min(width.
DesiredValue
, maxWidth)));
1380
if (DoubleUtil.GreaterThan(width.
DesiredValue
, oldWidth.DisplayValue))
1382
double nonRetrievableSpace = TakeAwayWidthFromColumns(changedColumn, width.
DesiredValue
- oldWidth.DisplayValue, changedColumn != null);
1388
width.
DesiredValue
,
1392
else if (DoubleUtil.LessThan(width.
DesiredValue
, oldWidth.DisplayValue))
1394
double newDesiredValue = DataGridHelper.CoerceToMinMax(width.
DesiredValue
, changedColumn.MinWidth, changedColumn.MaxWidth);
1701
double columnExcessWidth = onlyShrinkToDesiredWidth ? width.DisplayValue - Math.Max(width.
DesiredValue
, column.MinWidth) : width.DisplayValue - column.MinWidth;
1712
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, width.DisplayValue - columnExcessWidth));
1786
double maxColumnResizeWidth = expandBeyondDesiredWidth ? column.MaxWidth : Math.Min(width.
DesiredValue
, column.MaxWidth);
1797
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, width.DisplayValue + columnLagWidth));
1938
double starValue = width.
DesiredValue
/ width.Value;
1943
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, columnDisplayWidth));
2075
if (DoubleUtil.LessThan(width.DisplayValue, width.
DesiredValue
) &&
2079
double lagWidth = Math.Min(width.
DesiredValue
, columnMaxWidth) - width.DisplayValue;
2110
if (DoubleUtil.LessThan(width.DisplayValue, Math.Min(width.
DesiredValue
, column.MaxWidth)))
2112
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, width.DisplayValue + perColumnGiveAwayWidth));
2376
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, width.DisplayValue - perColumnTakeAwayWidth));
System\Windows\Controls\DataGridHelper.cs (3)
272
desiredWidth = oldWidth.
DesiredValue
;
275
if (double.IsNaN(width.
DesiredValue
) ||
276
DoubleUtil.LessThan(width.
DesiredValue
, desiredWidth))
System\Windows\Controls\DataGridLength.cs (8)
133
&& ((gl1.
DesiredValue
== gl2.
DesiredValue
) || (double.IsNaN(gl1.
DesiredValue
) && double.IsNaN(gl2.
DesiredValue
)))
148
|| ((gl1.
DesiredValue
!= gl2.
DesiredValue
) && !(double.IsNaN(gl1.
DesiredValue
) && double.IsNaN(gl2.
DesiredValue
)))