83 references to DisplayValue
PresentationFramework (83)
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (7)
151!DoubleUtil.IsNaN(width.DisplayValue) && 152DoubleUtil.GreaterThan(desiredWidth, width.DisplayValue)) 154childMeasureConstraint.Width = width.DisplayValue; 580if (!DoubleUtil.IsNaN(width.DisplayValue)) 582childSize = new Size(width.DisplayValue, childSize.Height); 1478childWidth = cell.Column.Width.DisplayValue; 1907double childMeasureWidth = column.Width.DisplayValue;
src\Framework\System\Windows\Controls\DataGridColumn.cs (15)
232!DoubleUtil.AreClose(oldWidth.DisplayValue, newWidth.DisplayValue)) 402double newDisplayValue = CoerceDesiredOrDisplayWidthValue(width.Value, width.DisplayValue, width.UnitType); 404if (DoubleUtil.IsNaN(newDisplayValue) || DoubleUtil.AreClose(newDisplayValue, width.DisplayValue)) 496actualWidth = width.DisplayValue; 519if (!DoubleUtil.IsNaN(width.DisplayValue)) 521return width.DisplayValue; 560if (DoubleUtil.IsNaN(width.DisplayValue)) 567SetWidthInternal(new DataGridLength(width.Value, width.UnitType, pixelWidth, width.DisplayValue)); 568if (DoubleUtil.AreClose(originalDesiredValue, width.DisplayValue)) 570DataGridOwner.InternalColumns.RecomputeColumnWidthsOnColumnResize(this, pixelWidth - width.DisplayValue, true); 577if (DoubleUtil.IsNaN(width.DisplayValue)) 584else if (!DoubleUtil.AreClose(ActualWidth, width.DisplayValue)) 586ActualWidth = width.DisplayValue; 599if (!DoubleUtil.AreClose(displayWidth, width.DisplayValue) ||
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (49)
886nonStarSpace += width.DisplayValue; 1093if (column.IsVisible && !DoubleUtil.IsNaN(width.DisplayValue)) 1095eligibleDisplayValue += width.DisplayValue; 1197if (!DoubleUtil.AreClose(width.DisplayValue, displayValue)) 1217if (DoubleUtil.GreaterThan(minWidth, width.DisplayValue)) 1221TakeAwayWidthFromColumns(changedColumn, minWidth - width.DisplayValue, false); 1230if (DoubleUtil.AreClose(width.DisplayValue, oldMinWidth)) 1260if (DoubleUtil.LessThan(maxWidth, width.DisplayValue)) 1264GiveAwayWidthToColumns(changedColumn, width.DisplayValue - maxWidth); 1315double leftOverSpace = GiveAwayWidthToNonStarColumns(null, oldWidth.DisplayValue - minWidth); 1366if (DoubleUtil.GreaterThan(width.DesiredValue, width.DisplayValue) && 1367!DoubleUtil.AreClose(width.DisplayValue, maxWidth)) 1382if (DoubleUtil.GreaterThan(width.DesiredValue, oldWidth.DisplayValue)) 1384double nonRetrievableSpace = TakeAwayWidthFromColumns(changedColumn, width.DesiredValue - oldWidth.DisplayValue, changedColumn != null); 1391Math.Max(width.DisplayValue - nonRetrievableSpace, changedColumn.MinWidth))); 1394else if (DoubleUtil.LessThan(width.DesiredValue, oldWidth.DisplayValue)) 1397GiveAwayWidthToColumns(changedColumn, oldWidth.DisplayValue - newDesiredValue); 1454requiredSpace += width.DisplayValue; 1507double expectedRezingColumnWidth = resizingColumnWidth.DisplayValue + horizontalChange; 1511horizontalChange = resizingColumn.MinWidth - resizingColumnWidth.DisplayValue; 1515horizontalChange = resizingColumn.MaxWidth - resizingColumnWidth.DisplayValue; 1621if (DoubleUtil.GreaterThan(width.DisplayValue, column.MinWidth)) 1624double excessRatio = (width.DisplayValue - column.MinWidth) / width.Value; 1671else if (column.Width.IsStar && CanColumnParticipateInResize(column) && DoubleUtil.GreaterThan(width.DisplayValue, column.MinWidth)) 1673double columnDesiredWidth = width.DisplayValue - (width.Value * changePerStar); 1703double columnExcessWidth = onlyShrinkToDesiredWidth ? width.DisplayValue - Math.Max(width.DesiredValue, column.MinWidth) : width.DisplayValue - column.MinWidth; 1714column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue - columnExcessWidth)); 1790DoubleUtil.LessThan(width.DisplayValue, maxColumnResizeWidth)) 1792double columnLagWidth = maxColumnResizeWidth - width.DisplayValue; 1799column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + columnLagWidth)); 1871if (DoubleUtil.LessThan(width.DisplayValue, column.MaxWidth)) 1874double lagRatio = (column.MaxWidth - width.DisplayValue) / width.Value; 1920else if (column.Width.IsStar && CanColumnParticipateInResize(column) && DoubleUtil.LessThan(width.DisplayValue, column.MaxWidth)) 1922double columnDesiredWidth = width.DisplayValue + (width.Value * changePerStar); 1936double columnDisplayWidth = DataGridHelper.CoerceToMinMax(width.DisplayValue + widthDelta, column.MinWidth, column.MaxWidth); 1995sumOfStarDisplayWidths += width.DisplayValue; 2077if (DoubleUtil.LessThan(width.DisplayValue, width.DesiredValue) && 2078!DoubleUtil.AreClose(width.DisplayValue, columnMaxWidth)) 2081double lagWidth = Math.Min(width.DesiredValue, columnMaxWidth) - width.DisplayValue; 2112if (DoubleUtil.LessThan(width.DisplayValue, Math.Min(width.DesiredValue, column.MaxWidth))) 2114column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + perColumnGiveAwayWidth)); 2131usedSpace += column.Width.DisplayValue; 2182usedSpace += column.Width.DisplayValue; 2267sumOfStarDisplayWidths += width.DisplayValue; 2340if (DoubleUtil.GreaterThan(width.DisplayValue, minWidth)) 2343double excessWidth = width.DisplayValue - minWidth; 2376if (DoubleUtil.GreaterThan(width.DisplayValue, column.MinWidth)) 2378column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue - perColumnTakeAwayWidth));
src\Framework\System\Windows\Controls\DataGridHelper.cs (1)
279column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, desiredWidth, width.DisplayValue));
src\Framework\System\Windows\Controls\DataGridLength.cs (8)
135&& ((gl1.DisplayValue == gl2.DisplayValue) || (DoubleUtil.IsNaN(gl1.DisplayValue) && DoubleUtil.IsNaN(gl2.DisplayValue))); 150|| ((gl1.DisplayValue != gl2.DisplayValue) && !(DoubleUtil.IsNaN(gl1.DisplayValue) && DoubleUtil.IsNaN(gl2.DisplayValue)));
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
171if (!measureAndArrangeInvalidated && !DoubleUtil.AreClose(cell.ActualWidth, columns[i].Width.DisplayValue)) 188if (!DoubleUtil.AreClose(cell.ActualWidth, columns[i].Width.DisplayValue))
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
919double columnEstimatedWidth = column.Width.DisplayValue;