85 references to DisplayValue
PresentationFramework (85)
System\Windows\Controls\DataGridCellsPanel.cs (7)
145!double.IsNaN(width.DisplayValue) && 146DoubleUtil.GreaterThan(desiredWidth, width.DisplayValue)) 148childMeasureConstraint.Width = width.DisplayValue; 574if (!double.IsNaN(width.DisplayValue)) 576childSize = new Size(width.DisplayValue, childSize.Height); 1472childWidth = cell.Column.Width.DisplayValue; 1901double 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) || 1493return width.DisplayValue >= this.MinWidth && width.DisplayValue <= this.MaxWidth;
System\Windows\Controls\DataGridColumnCollection.cs (49)
880nonStarSpace += width.DisplayValue; 1087if (column.IsVisible && !double.IsNaN(width.DisplayValue)) 1089eligibleDisplayValue += width.DisplayValue; 1191if (!DoubleUtil.AreClose(width.DisplayValue, displayValue)) 1211if (DoubleUtil.GreaterThan(minWidth, width.DisplayValue)) 1215TakeAwayWidthFromColumns(changedColumn, minWidth - width.DisplayValue, false); 1224if (DoubleUtil.AreClose(width.DisplayValue, oldMinWidth)) 1254if (DoubleUtil.LessThan(maxWidth, width.DisplayValue)) 1258GiveAwayWidthToColumns(changedColumn, width.DisplayValue - maxWidth); 1309double leftOverSpace = GiveAwayWidthToNonStarColumns(null, oldWidth.DisplayValue - minWidth); 1360if (DoubleUtil.GreaterThan(width.DesiredValue, width.DisplayValue) && 1361!DoubleUtil.AreClose(width.DisplayValue, maxWidth)) 1376if (DoubleUtil.GreaterThan(width.DesiredValue, oldWidth.DisplayValue)) 1378double nonRetrievableSpace = TakeAwayWidthFromColumns(changedColumn, width.DesiredValue - oldWidth.DisplayValue, changedColumn != null); 1385Math.Max(width.DisplayValue - nonRetrievableSpace, changedColumn.MinWidth))); 1388else if (DoubleUtil.LessThan(width.DesiredValue, oldWidth.DisplayValue)) 1391GiveAwayWidthToColumns(changedColumn, oldWidth.DisplayValue - newDesiredValue); 1448requiredSpace += width.DisplayValue; 1501double expectedRezingColumnWidth = resizingColumnWidth.DisplayValue + horizontalChange; 1505horizontalChange = resizingColumn.MinWidth - resizingColumnWidth.DisplayValue; 1509horizontalChange = resizingColumn.MaxWidth - resizingColumnWidth.DisplayValue; 1615if (DoubleUtil.GreaterThan(width.DisplayValue, column.MinWidth)) 1618double excessRatio = (width.DisplayValue - column.MinWidth) / width.Value; 1665else if (column.Width.IsStar && CanColumnParticipateInResize(column) && DoubleUtil.GreaterThan(width.DisplayValue, column.MinWidth)) 1667double columnDesiredWidth = width.DisplayValue - (width.Value * changePerStar); 1697double columnExcessWidth = onlyShrinkToDesiredWidth ? width.DisplayValue - Math.Max(width.DesiredValue, column.MinWidth) : width.DisplayValue - column.MinWidth; 1708column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue - columnExcessWidth)); 1784DoubleUtil.LessThan(width.DisplayValue, maxColumnResizeWidth)) 1786double columnLagWidth = maxColumnResizeWidth - width.DisplayValue; 1793column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + columnLagWidth)); 1865if (DoubleUtil.LessThan(width.DisplayValue, column.MaxWidth)) 1868double lagRatio = (column.MaxWidth - width.DisplayValue) / width.Value; 1914else if (column.Width.IsStar && CanColumnParticipateInResize(column) && DoubleUtil.LessThan(width.DisplayValue, column.MaxWidth)) 1916double columnDesiredWidth = width.DisplayValue + (width.Value * changePerStar); 1930double columnDisplayWidth = DataGridHelper.CoerceToMinMax(width.DisplayValue + widthDelta, column.MinWidth, column.MaxWidth); 1989sumOfStarDisplayWidths += width.DisplayValue; 2071if (DoubleUtil.LessThan(width.DisplayValue, width.DesiredValue) && 2072!DoubleUtil.AreClose(width.DisplayValue, columnMaxWidth)) 2075double lagWidth = Math.Min(width.DesiredValue, columnMaxWidth) - width.DisplayValue; 2106if (DoubleUtil.LessThan(width.DisplayValue, Math.Min(width.DesiredValue, column.MaxWidth))) 2108column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + perColumnGiveAwayWidth)); 2125usedSpace += column.Width.DisplayValue; 2176usedSpace += column.Width.DisplayValue; 2261sumOfStarDisplayWidths += width.DisplayValue; 2334if (DoubleUtil.GreaterThan(width.DisplayValue, minWidth)) 2337double excessWidth = width.DisplayValue - minWidth; 2370if (DoubleUtil.GreaterThan(width.DisplayValue, column.MinWidth)) 2372column.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)
914double columnEstimatedWidth = column.Width.DisplayValue;