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