51 references to DesiredValue
PresentationFramework (51)
System\Windows\Controls\DataGridColumn.cs (7)
273double displayValue = DataGridHelper.CoerceToMinMax(changedWidth.DesiredValue, column.MinWidth, column.MaxWidth); 274column.SetWidthInternal(new DataGridLength(changedWidth.Value, changedWidth.UnitType, changedWidth.DesiredValue, displayValue)); 400double newDesiredValue = CoerceDesiredOrDisplayWidthValue(width.Value, width.DesiredValue, width.UnitType); 556if (double.IsNaN(width.DesiredValue) || 557DoubleUtil.LessThan(width.DesiredValue, pixelWidth)) 565double originalDesiredValue = DataGridHelper.CoerceToMinMax(width.DesiredValue, minWidth, maxWidth); 599!DoubleUtil.AreClose(desiredWidth, width.DesiredValue) ||
System\Windows\Controls\DataGridColumnCollection.cs (33)
814!DoubleUtil.AreClose(width.DesiredValue, 0.0)) 816perStarWidth = width.DesiredValue / width.Value; 1194double displayValue = DataGridHelper.CoerceToMinMax(double.IsNaN(width.DesiredValue) ? minWidth : width.DesiredValue, minWidth, column.MaxWidth); 1197column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, displayValue)); 1222changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, minWidth)); 1233else if (DoubleUtil.GreaterThan(oldMinWidth, width.DesiredValue)) 1235double displayValue = Math.Max(width.DesiredValue, minWidth); 1241changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, displayValue)); 1265changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, maxWidth)); 1273else if (DoubleUtil.LessThan(oldMaxWidth, width.DesiredValue)) 1275double displayValue = Math.Min(width.DesiredValue, maxWidth); 1283changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, displayValue)); 1314changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, minWidth + leftOverSpace)); 1364if (DoubleUtil.GreaterThan(width.DesiredValue, width.DisplayValue) && 1367column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, Math.Min(width.DesiredValue, maxWidth))); 1380if (DoubleUtil.GreaterThan(width.DesiredValue, oldWidth.DisplayValue)) 1382double nonRetrievableSpace = TakeAwayWidthFromColumns(changedColumn, width.DesiredValue - oldWidth.DisplayValue, changedColumn != null); 1388width.DesiredValue, 1392else if (DoubleUtil.LessThan(width.DesiredValue, oldWidth.DisplayValue)) 1394double newDesiredValue = DataGridHelper.CoerceToMinMax(width.DesiredValue, changedColumn.MinWidth, changedColumn.MaxWidth); 1701double columnExcessWidth = onlyShrinkToDesiredWidth ? width.DisplayValue - Math.Max(width.DesiredValue, column.MinWidth) : width.DisplayValue - column.MinWidth; 1712column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue - columnExcessWidth)); 1786double maxColumnResizeWidth = expandBeyondDesiredWidth ? column.MaxWidth : Math.Min(width.DesiredValue, column.MaxWidth); 1797column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + columnLagWidth)); 1938double starValue = width.DesiredValue / width.Value; 1943column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, columnDisplayWidth)); 2075if (DoubleUtil.LessThan(width.DisplayValue, width.DesiredValue) && 2079double lagWidth = Math.Min(width.DesiredValue, columnMaxWidth) - width.DisplayValue; 2110if (DoubleUtil.LessThan(width.DisplayValue, Math.Min(width.DesiredValue, column.MaxWidth))) 2112column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + perColumnGiveAwayWidth)); 2376column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue - perColumnTakeAwayWidth));
System\Windows\Controls\DataGridHelper.cs (3)
272desiredWidth = oldWidth.DesiredValue; 275if (double.IsNaN(width.DesiredValue) || 276DoubleUtil.LessThan(width.DesiredValue, desiredWidth))
System\Windows\Controls\DataGridLength.cs (8)
133&& ((gl1.DesiredValue == gl2.DesiredValue) || (double.IsNaN(gl1.DesiredValue) && double.IsNaN(gl2.DesiredValue))) 148|| ((gl1.DesiredValue != gl2.DesiredValue) && !(double.IsNaN(gl1.DesiredValue) && double.IsNaN(gl2.DesiredValue)))