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