85 references to DisplayValue
PresentationFramework (85)
System\Windows\Controls\DataGridCellsPanel.cs (7)
144!double.IsNaN(width.DisplayValue) && 145DoubleUtil.GreaterThan(desiredWidth, width.DisplayValue)) 147childMeasureConstraint.Width = width.DisplayValue; 573if (!double.IsNaN(width.DisplayValue)) 575childSize = new Size(width.DisplayValue, childSize.Height); 1467childWidth = cell.Column.Width.DisplayValue; 1896double childMeasureWidth = column.Width.DisplayValue;
System\Windows\Controls\DataGridColumn.cs (17)
228!DoubleUtil.AreClose(oldWidth.DisplayValue, newWidth.DisplayValue)) 398double newDisplayValue = CoerceDesiredOrDisplayWidthValue(width.Value, width.DisplayValue, width.UnitType); 400if (double.IsNaN(newDisplayValue) || DoubleUtil.AreClose(newDisplayValue, width.DisplayValue)) 492actualWidth = width.DisplayValue; 515if (!double.IsNaN(width.DisplayValue)) 517return width.DisplayValue; 556if (double.IsNaN(width.DisplayValue)) 563SetWidthInternal(new DataGridLength(width.Value, width.UnitType, pixelWidth, width.DisplayValue)); 564if (DoubleUtil.AreClose(originalDesiredValue, width.DisplayValue)) 566DataGridOwner.InternalColumns.RecomputeColumnWidthsOnColumnResize(this, pixelWidth - width.DisplayValue, true); 573if (double.IsNaN(width.DisplayValue)) 580else if (!DoubleUtil.AreClose(ActualWidth, width.DisplayValue)) 582ActualWidth = width.DisplayValue; 595if (!DoubleUtil.AreClose(displayWidth, width.DisplayValue) || 1486return width.DisplayValue >= this.MinWidth && width.DisplayValue <= this.MaxWidth;
System\Windows\Controls\DataGridColumnCollection.cs (49)
880nonStarSpace += width.DisplayValue; 1084if (column.IsVisible && !double.IsNaN(width.DisplayValue)) 1086eligibleDisplayValue += width.DisplayValue; 1188if (!DoubleUtil.AreClose(width.DisplayValue, displayValue)) 1208if (DoubleUtil.GreaterThan(minWidth, width.DisplayValue)) 1212TakeAwayWidthFromColumns(changedColumn, minWidth - width.DisplayValue, false); 1221if (DoubleUtil.AreClose(width.DisplayValue, oldMinWidth)) 1251if (DoubleUtil.LessThan(maxWidth, width.DisplayValue)) 1255GiveAwayWidthToColumns(changedColumn, width.DisplayValue - maxWidth); 1306double leftOverSpace = GiveAwayWidthToNonStarColumns(null, oldWidth.DisplayValue - minWidth); 1357if (DoubleUtil.GreaterThan(width.DesiredValue, width.DisplayValue) && 1358!DoubleUtil.AreClose(width.DisplayValue, maxWidth)) 1373if (DoubleUtil.GreaterThan(width.DesiredValue, oldWidth.DisplayValue)) 1375double nonRetrievableSpace = TakeAwayWidthFromColumns(changedColumn, width.DesiredValue - oldWidth.DisplayValue, changedColumn != null); 1382Math.Max(width.DisplayValue - nonRetrievableSpace, changedColumn.MinWidth))); 1385else if (DoubleUtil.LessThan(width.DesiredValue, oldWidth.DisplayValue)) 1388GiveAwayWidthToColumns(changedColumn, oldWidth.DisplayValue - newDesiredValue); 1445requiredSpace += width.DisplayValue; 1498double expectedRezingColumnWidth = resizingColumnWidth.DisplayValue + horizontalChange; 1502horizontalChange = resizingColumn.MinWidth - resizingColumnWidth.DisplayValue; 1506horizontalChange = resizingColumn.MaxWidth - resizingColumnWidth.DisplayValue; 1612if (DoubleUtil.GreaterThan(width.DisplayValue, column.MinWidth)) 1615double excessRatio = (width.DisplayValue - column.MinWidth) / width.Value; 1662else if (column.Width.IsStar && CanColumnParticipateInResize(column) && DoubleUtil.GreaterThan(width.DisplayValue, column.MinWidth)) 1664double columnDesiredWidth = width.DisplayValue - (width.Value * changePerStar); 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)); 1781DoubleUtil.LessThan(width.DisplayValue, maxColumnResizeWidth)) 1783double columnLagWidth = maxColumnResizeWidth - width.DisplayValue; 1790column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + columnLagWidth)); 1862if (DoubleUtil.LessThan(width.DisplayValue, column.MaxWidth)) 1865double lagRatio = (column.MaxWidth - width.DisplayValue) / width.Value; 1911else if (column.Width.IsStar && CanColumnParticipateInResize(column) && DoubleUtil.LessThan(width.DisplayValue, column.MaxWidth)) 1913double columnDesiredWidth = width.DisplayValue + (width.Value * changePerStar); 1927double columnDisplayWidth = DataGridHelper.CoerceToMinMax(width.DisplayValue + widthDelta, column.MinWidth, column.MaxWidth); 1986sumOfStarDisplayWidths += width.DisplayValue; 2068if (DoubleUtil.LessThan(width.DisplayValue, width.DesiredValue) && 2069!DoubleUtil.AreClose(width.DisplayValue, columnMaxWidth)) 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)); 2122usedSpace += column.Width.DisplayValue; 2173usedSpace += column.Width.DisplayValue; 2258sumOfStarDisplayWidths += width.DisplayValue; 2331if (DoubleUtil.GreaterThan(width.DisplayValue, minWidth)) 2334double excessWidth = width.DisplayValue - minWidth; 2367if (DoubleUtil.GreaterThan(width.DisplayValue, column.MinWidth)) 2369column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue - perColumnTakeAwayWidth));
System\Windows\Controls\DataGridHelper.cs (1)
272column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, desiredWidth, width.DisplayValue));
System\Windows\Controls\DataGridLength.cs (8)
131&& ((gl1.DisplayValue == gl2.DisplayValue) || (double.IsNaN(gl1.DisplayValue) && double.IsNaN(gl2.DisplayValue))); 146|| ((gl1.DisplayValue != gl2.DisplayValue) && !(double.IsNaN(gl1.DisplayValue) && double.IsNaN(gl2.DisplayValue)));
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
165if (!measureAndArrangeInvalidated && !DoubleUtil.AreClose(cell.ActualWidth, columns[i].Width.DisplayValue)) 182if (!DoubleUtil.AreClose(cell.ActualWidth, columns[i].Width.DisplayValue))
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
909double columnEstimatedWidth = column.Width.DisplayValue;