51 references to DesiredValue
PresentationFramework (51)
System\Windows\Controls\DataGridColumn.cs (7)
270
double displayValue = DataGridHelper.CoerceToMinMax(changedWidth.
DesiredValue
, column.MinWidth, column.MaxWidth);
271
column.SetWidthInternal(new DataGridLength(changedWidth.Value, changedWidth.UnitType, changedWidth.
DesiredValue
, displayValue));
397
double newDesiredValue = CoerceDesiredOrDisplayWidthValue(width.Value, width.
DesiredValue
, width.UnitType);
553
if (double.IsNaN(width.
DesiredValue
) ||
554
DoubleUtil.LessThan(width.
DesiredValue
, pixelWidth))
562
double originalDesiredValue = DataGridHelper.CoerceToMinMax(width.
DesiredValue
, minWidth, maxWidth);
596
!DoubleUtil.AreClose(desiredWidth, width.
DesiredValue
) ||
System\Windows\Controls\DataGridColumnCollection.cs (33)
810
!DoubleUtil.AreClose(width.
DesiredValue
, 0.0))
812
perStarWidth = width.
DesiredValue
/ width.Value;
1187
double displayValue = DataGridHelper.CoerceToMinMax(double.IsNaN(width.
DesiredValue
) ? minWidth : width.
DesiredValue
, minWidth, column.MaxWidth);
1190
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, displayValue));
1215
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, minWidth));
1226
else if (DoubleUtil.GreaterThan(oldMinWidth, width.
DesiredValue
))
1228
double displayValue = Math.Max(width.
DesiredValue
, minWidth);
1234
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, displayValue));
1258
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, maxWidth));
1266
else if (DoubleUtil.LessThan(oldMaxWidth, width.
DesiredValue
))
1268
double displayValue = Math.Min(width.
DesiredValue
, maxWidth);
1276
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, displayValue));
1307
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, minWidth + leftOverSpace));
1357
if (DoubleUtil.GreaterThan(width.
DesiredValue
, width.DisplayValue) &&
1360
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, Math.Min(width.
DesiredValue
, maxWidth)));
1373
if (DoubleUtil.GreaterThan(width.
DesiredValue
, oldWidth.DisplayValue))
1375
double nonRetrievableSpace = TakeAwayWidthFromColumns(changedColumn, width.
DesiredValue
- oldWidth.DisplayValue, changedColumn != null);
1381
width.
DesiredValue
,
1385
else if (DoubleUtil.LessThan(width.
DesiredValue
, oldWidth.DisplayValue))
1387
double newDesiredValue = DataGridHelper.CoerceToMinMax(width.
DesiredValue
, changedColumn.MinWidth, changedColumn.MaxWidth);
1694
double columnExcessWidth = onlyShrinkToDesiredWidth ? width.DisplayValue - Math.Max(width.
DesiredValue
, column.MinWidth) : width.DisplayValue - column.MinWidth;
1705
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, width.DisplayValue - columnExcessWidth));
1779
double maxColumnResizeWidth = expandBeyondDesiredWidth ? column.MaxWidth : Math.Min(width.
DesiredValue
, column.MaxWidth);
1790
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, width.DisplayValue + columnLagWidth));
1931
double starValue = width.
DesiredValue
/ width.Value;
1936
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, columnDisplayWidth));
2068
if (DoubleUtil.LessThan(width.DisplayValue, width.
DesiredValue
) &&
2072
double lagWidth = Math.Min(width.
DesiredValue
, columnMaxWidth) - width.DisplayValue;
2103
if (DoubleUtil.LessThan(width.DisplayValue, Math.Min(width.
DesiredValue
, column.MaxWidth)))
2105
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, width.DisplayValue + perColumnGiveAwayWidth));
2369
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, width.DisplayValue - perColumnTakeAwayWidth));
System\Windows\Controls\DataGridHelper.cs (3)
266
desiredWidth = oldWidth.
DesiredValue
;
269
if (double.IsNaN(width.
DesiredValue
) ||
270
DoubleUtil.LessThan(width.
DesiredValue
, desiredWidth))
System\Windows\Controls\DataGridLength.cs (8)
130
&& ((gl1.
DesiredValue
== gl2.
DesiredValue
) || (double.IsNaN(gl1.
DesiredValue
) && double.IsNaN(gl2.
DesiredValue
)))
145
|| ((gl1.
DesiredValue
!= gl2.
DesiredValue
) && !(double.IsNaN(gl1.
DesiredValue
) && double.IsNaN(gl2.
DesiredValue
)))