51 references to DesiredValue
PresentationFramework (51)
System\Windows\Controls\DataGridColumn.cs (7)
269double displayValue = DataGridHelper.CoerceToMinMax(changedWidth.DesiredValue, column.MinWidth, column.MaxWidth); 270column.SetWidthInternal(new DataGridLength(changedWidth.Value, changedWidth.UnitType, changedWidth.DesiredValue, displayValue)); 396double newDesiredValue = CoerceDesiredOrDisplayWidthValue(width.Value, width.DesiredValue, width.UnitType); 552if (double.IsNaN(width.DesiredValue) || 553DoubleUtil.LessThan(width.DesiredValue, pixelWidth)) 561double originalDesiredValue = DataGridHelper.CoerceToMinMax(width.DesiredValue, minWidth, maxWidth); 595!DoubleUtil.AreClose(desiredWidth, width.DesiredValue) ||
System\Windows\Controls\DataGridColumnCollection.cs (33)
809!DoubleUtil.AreClose(width.DesiredValue, 0.0)) 811perStarWidth = width.DesiredValue / width.Value; 1186double displayValue = DataGridHelper.CoerceToMinMax(double.IsNaN(width.DesiredValue) ? minWidth : width.DesiredValue, minWidth, column.MaxWidth); 1189column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, displayValue)); 1214changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, minWidth)); 1225else if (DoubleUtil.GreaterThan(oldMinWidth, width.DesiredValue)) 1227double displayValue = Math.Max(width.DesiredValue, minWidth); 1233changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, displayValue)); 1257changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, maxWidth)); 1265else if (DoubleUtil.LessThan(oldMaxWidth, width.DesiredValue)) 1267double displayValue = Math.Min(width.DesiredValue, maxWidth); 1275changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, displayValue)); 1306changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, minWidth + leftOverSpace)); 1356if (DoubleUtil.GreaterThan(width.DesiredValue, width.DisplayValue) && 1359column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, Math.Min(width.DesiredValue, maxWidth))); 1372if (DoubleUtil.GreaterThan(width.DesiredValue, oldWidth.DisplayValue)) 1374double nonRetrievableSpace = TakeAwayWidthFromColumns(changedColumn, width.DesiredValue - oldWidth.DisplayValue, changedColumn != null); 1380width.DesiredValue, 1384else if (DoubleUtil.LessThan(width.DesiredValue, oldWidth.DisplayValue)) 1386double newDesiredValue = DataGridHelper.CoerceToMinMax(width.DesiredValue, changedColumn.MinWidth, changedColumn.MaxWidth); 1693double columnExcessWidth = onlyShrinkToDesiredWidth ? width.DisplayValue - Math.Max(width.DesiredValue, column.MinWidth) : width.DisplayValue - column.MinWidth; 1704column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue - columnExcessWidth)); 1778double maxColumnResizeWidth = expandBeyondDesiredWidth ? column.MaxWidth : Math.Min(width.DesiredValue, column.MaxWidth); 1789column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + columnLagWidth)); 1930double starValue = width.DesiredValue / width.Value; 1935column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, columnDisplayWidth)); 2067if (DoubleUtil.LessThan(width.DisplayValue, width.DesiredValue) && 2071double lagWidth = Math.Min(width.DesiredValue, columnMaxWidth) - width.DisplayValue; 2102if (DoubleUtil.LessThan(width.DisplayValue, Math.Min(width.DesiredValue, column.MaxWidth))) 2104column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + perColumnGiveAwayWidth)); 2368column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue - perColumnTakeAwayWidth));
System\Windows\Controls\DataGridHelper.cs (3)
265desiredWidth = oldWidth.DesiredValue; 268if (double.IsNaN(width.DesiredValue) || 269DoubleUtil.LessThan(width.DesiredValue, desiredWidth))
System\Windows\Controls\DataGridLength.cs (8)
129&& ((gl1.DesiredValue == gl2.DesiredValue) || (double.IsNaN(gl1.DesiredValue) && double.IsNaN(gl2.DesiredValue))) 144|| ((gl1.DesiredValue != gl2.DesiredValue) && !(double.IsNaN(gl1.DesiredValue) && double.IsNaN(gl2.DesiredValue)))