51 references to DesiredValue
PresentationFramework (51)
src\Framework\System\Windows\Controls\DataGridColumn.cs (7)
274
double displayValue = DataGridHelper.CoerceToMinMax(changedWidth.
DesiredValue
, column.MinWidth, column.MaxWidth);
275
column.SetWidthInternal(new DataGridLength(changedWidth.Value, changedWidth.UnitType, changedWidth.
DesiredValue
, displayValue));
401
double newDesiredValue = CoerceDesiredOrDisplayWidthValue(width.Value, width.
DesiredValue
, width.UnitType);
557
if (DoubleUtil.IsNaN(width.
DesiredValue
) ||
558
DoubleUtil.LessThan(width.
DesiredValue
, pixelWidth))
566
double originalDesiredValue = DataGridHelper.CoerceToMinMax(width.
DesiredValue
, minWidth, maxWidth);
600
!DoubleUtil.AreClose(desiredWidth, width.
DesiredValue
) ||
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (33)
816
!DoubleUtil.AreClose(width.
DesiredValue
, 0.0))
818
perStarWidth = width.
DesiredValue
/ width.Value;
1196
double displayValue = DataGridHelper.CoerceToMinMax(DoubleUtil.IsNaN(width.
DesiredValue
) ? minWidth : width.
DesiredValue
, minWidth, column.MaxWidth);
1199
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, displayValue));
1224
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, minWidth));
1235
else if (DoubleUtil.GreaterThan(oldMinWidth, width.
DesiredValue
))
1237
double displayValue = Math.Max(width.
DesiredValue
, minWidth);
1243
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, displayValue));
1267
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, maxWidth));
1275
else if (DoubleUtil.LessThan(oldMaxWidth, width.
DesiredValue
))
1277
double displayValue = Math.Min(width.
DesiredValue
, maxWidth);
1285
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, displayValue));
1316
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, minWidth + leftOverSpace));
1366
if (DoubleUtil.GreaterThan(width.
DesiredValue
, width.DisplayValue) &&
1369
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, Math.Min(width.
DesiredValue
, maxWidth)));
1382
if (DoubleUtil.GreaterThan(width.
DesiredValue
, oldWidth.DisplayValue))
1384
double nonRetrievableSpace = TakeAwayWidthFromColumns(changedColumn, width.
DesiredValue
- oldWidth.DisplayValue, changedColumn != null);
1390
width.
DesiredValue
,
1394
else if (DoubleUtil.LessThan(width.
DesiredValue
, oldWidth.DisplayValue))
1396
double newDesiredValue = DataGridHelper.CoerceToMinMax(width.
DesiredValue
, changedColumn.MinWidth, changedColumn.MaxWidth);
1703
double columnExcessWidth = onlyShrinkToDesiredWidth ? width.DisplayValue - Math.Max(width.
DesiredValue
, column.MinWidth) : width.DisplayValue - column.MinWidth;
1714
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, width.DisplayValue - columnExcessWidth));
1788
double maxColumnResizeWidth = expandBeyondDesiredWidth ? column.MaxWidth : Math.Min(width.
DesiredValue
, column.MaxWidth);
1799
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, width.DisplayValue + columnLagWidth));
1940
double starValue = width.
DesiredValue
/ width.Value;
1945
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, columnDisplayWidth));
2077
if (DoubleUtil.LessThan(width.DisplayValue, width.
DesiredValue
) &&
2081
double lagWidth = Math.Min(width.
DesiredValue
, columnMaxWidth) - width.DisplayValue;
2112
if (DoubleUtil.LessThan(width.DisplayValue, Math.Min(width.
DesiredValue
, column.MaxWidth)))
2114
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, width.DisplayValue + perColumnGiveAwayWidth));
2378
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.
DesiredValue
, width.DisplayValue - perColumnTakeAwayWidth));
src\Framework\System\Windows\Controls\DataGridHelper.cs (3)
273
desiredWidth = oldWidth.
DesiredValue
;
276
if (DoubleUtil.IsNaN(width.
DesiredValue
) ||
277
DoubleUtil.LessThan(width.
DesiredValue
, desiredWidth))
src\Framework\System\Windows\Controls\DataGridLength.cs (8)
134
&& ((gl1.
DesiredValue
== gl2.
DesiredValue
) || (DoubleUtil.IsNaN(gl1.
DesiredValue
) && DoubleUtil.IsNaN(gl2.
DesiredValue
)))
149
|| ((gl1.
DesiredValue
!= gl2.
DesiredValue
) && !(DoubleUtil.IsNaN(gl1.
DesiredValue
) && DoubleUtil.IsNaN(gl2.
DesiredValue
)))