85 references to DisplayValue
PresentationFramework (85)
System\Windows\Controls\DataGridCellsPanel.cs (7)
143!double.IsNaN(width.DisplayValue) && 144DoubleUtil.GreaterThan(desiredWidth, width.DisplayValue)) 146childMeasureConstraint.Width = width.DisplayValue; 572if (!double.IsNaN(width.DisplayValue)) 574childSize = new Size(width.DisplayValue, childSize.Height); 1466childWidth = cell.Column.Width.DisplayValue; 1895double childMeasureWidth = column.Width.DisplayValue;
System\Windows\Controls\DataGridColumn.cs (17)
227!DoubleUtil.AreClose(oldWidth.DisplayValue, newWidth.DisplayValue)) 397double newDisplayValue = CoerceDesiredOrDisplayWidthValue(width.Value, width.DisplayValue, width.UnitType); 399if (double.IsNaN(newDisplayValue) || DoubleUtil.AreClose(newDisplayValue, width.DisplayValue)) 491actualWidth = width.DisplayValue; 514if (!double.IsNaN(width.DisplayValue)) 516return width.DisplayValue; 555if (double.IsNaN(width.DisplayValue)) 562SetWidthInternal(new DataGridLength(width.Value, width.UnitType, pixelWidth, width.DisplayValue)); 563if (DoubleUtil.AreClose(originalDesiredValue, width.DisplayValue)) 565DataGridOwner.InternalColumns.RecomputeColumnWidthsOnColumnResize(this, pixelWidth - width.DisplayValue, true); 572if (double.IsNaN(width.DisplayValue)) 579else if (!DoubleUtil.AreClose(ActualWidth, width.DisplayValue)) 581ActualWidth = width.DisplayValue; 594if (!DoubleUtil.AreClose(displayWidth, width.DisplayValue) || 1485return width.DisplayValue >= this.MinWidth && width.DisplayValue <= this.MaxWidth;
System\Windows\Controls\DataGridColumnCollection.cs (49)
879nonStarSpace += width.DisplayValue; 1083if (column.IsVisible && !double.IsNaN(width.DisplayValue)) 1085eligibleDisplayValue += width.DisplayValue; 1187if (!DoubleUtil.AreClose(width.DisplayValue, displayValue)) 1207if (DoubleUtil.GreaterThan(minWidth, width.DisplayValue)) 1211TakeAwayWidthFromColumns(changedColumn, minWidth - width.DisplayValue, false); 1220if (DoubleUtil.AreClose(width.DisplayValue, oldMinWidth)) 1250if (DoubleUtil.LessThan(maxWidth, width.DisplayValue)) 1254GiveAwayWidthToColumns(changedColumn, width.DisplayValue - maxWidth); 1305double leftOverSpace = GiveAwayWidthToNonStarColumns(null, oldWidth.DisplayValue - minWidth); 1356if (DoubleUtil.GreaterThan(width.DesiredValue, width.DisplayValue) && 1357!DoubleUtil.AreClose(width.DisplayValue, maxWidth)) 1372if (DoubleUtil.GreaterThan(width.DesiredValue, oldWidth.DisplayValue)) 1374double nonRetrievableSpace = TakeAwayWidthFromColumns(changedColumn, width.DesiredValue - oldWidth.DisplayValue, changedColumn != null); 1381Math.Max(width.DisplayValue - nonRetrievableSpace, changedColumn.MinWidth))); 1384else if (DoubleUtil.LessThan(width.DesiredValue, oldWidth.DisplayValue)) 1387GiveAwayWidthToColumns(changedColumn, oldWidth.DisplayValue - newDesiredValue); 1444requiredSpace += width.DisplayValue; 1497double expectedRezingColumnWidth = resizingColumnWidth.DisplayValue + horizontalChange; 1501horizontalChange = resizingColumn.MinWidth - resizingColumnWidth.DisplayValue; 1505horizontalChange = resizingColumn.MaxWidth - resizingColumnWidth.DisplayValue; 1611if (DoubleUtil.GreaterThan(width.DisplayValue, column.MinWidth)) 1614double excessRatio = (width.DisplayValue - column.MinWidth) / width.Value; 1661else if (column.Width.IsStar && CanColumnParticipateInResize(column) && DoubleUtil.GreaterThan(width.DisplayValue, column.MinWidth)) 1663double columnDesiredWidth = width.DisplayValue - (width.Value * changePerStar); 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)); 1780DoubleUtil.LessThan(width.DisplayValue, maxColumnResizeWidth)) 1782double columnLagWidth = maxColumnResizeWidth - width.DisplayValue; 1789column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + columnLagWidth)); 1861if (DoubleUtil.LessThan(width.DisplayValue, column.MaxWidth)) 1864double lagRatio = (column.MaxWidth - width.DisplayValue) / width.Value; 1910else if (column.Width.IsStar && CanColumnParticipateInResize(column) && DoubleUtil.LessThan(width.DisplayValue, column.MaxWidth)) 1912double columnDesiredWidth = width.DisplayValue + (width.Value * changePerStar); 1926double columnDisplayWidth = DataGridHelper.CoerceToMinMax(width.DisplayValue + widthDelta, column.MinWidth, column.MaxWidth); 1985sumOfStarDisplayWidths += width.DisplayValue; 2067if (DoubleUtil.LessThan(width.DisplayValue, width.DesiredValue) && 2068!DoubleUtil.AreClose(width.DisplayValue, columnMaxWidth)) 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)); 2121usedSpace += column.Width.DisplayValue; 2172usedSpace += column.Width.DisplayValue; 2257sumOfStarDisplayWidths += width.DisplayValue; 2330if (DoubleUtil.GreaterThan(width.DisplayValue, minWidth)) 2333double excessWidth = width.DisplayValue - minWidth; 2366if (DoubleUtil.GreaterThan(width.DisplayValue, column.MinWidth)) 2368column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue - perColumnTakeAwayWidth));
System\Windows\Controls\DataGridHelper.cs (1)
271column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, desiredWidth, width.DisplayValue));
System\Windows\Controls\DataGridLength.cs (8)
130&& ((gl1.DisplayValue == gl2.DisplayValue) || (double.IsNaN(gl1.DisplayValue) && double.IsNaN(gl2.DisplayValue))); 145|| ((gl1.DisplayValue != gl2.DisplayValue) && !(double.IsNaN(gl1.DisplayValue) && double.IsNaN(gl2.DisplayValue)));
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
164if (!measureAndArrangeInvalidated && !DoubleUtil.AreClose(cell.ActualWidth, columns[i].Width.DisplayValue)) 181if (!DoubleUtil.AreClose(cell.ActualWidth, columns[i].Width.DisplayValue))
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
908double columnEstimatedWidth = column.Width.DisplayValue;