85 references to DisplayValue
PresentationFramework (85)
System\Windows\Controls\DataGridCellsPanel.cs (7)
149!double.IsNaN(width.DisplayValue) && 150DoubleUtil.GreaterThan(desiredWidth, width.DisplayValue)) 152childMeasureConstraint.Width = width.DisplayValue; 578if (!double.IsNaN(width.DisplayValue)) 580childSize = new Size(width.DisplayValue, childSize.Height); 1476childWidth = cell.Column.Width.DisplayValue; 1905double childMeasureWidth = column.Width.DisplayValue;
System\Windows\Controls\DataGridColumn.cs (17)
231!DoubleUtil.AreClose(oldWidth.DisplayValue, newWidth.DisplayValue)) 401double newDisplayValue = CoerceDesiredOrDisplayWidthValue(width.Value, width.DisplayValue, width.UnitType); 403if (double.IsNaN(newDisplayValue) || DoubleUtil.AreClose(newDisplayValue, width.DisplayValue)) 495actualWidth = width.DisplayValue; 518if (!double.IsNaN(width.DisplayValue)) 520return width.DisplayValue; 559if (double.IsNaN(width.DisplayValue)) 566SetWidthInternal(new DataGridLength(width.Value, width.UnitType, pixelWidth, width.DisplayValue)); 567if (DoubleUtil.AreClose(originalDesiredValue, width.DisplayValue)) 569DataGridOwner.InternalColumns.RecomputeColumnWidthsOnColumnResize(this, pixelWidth - width.DisplayValue, true); 576if (double.IsNaN(width.DisplayValue)) 583else if (!DoubleUtil.AreClose(ActualWidth, width.DisplayValue)) 585ActualWidth = width.DisplayValue; 598if (!DoubleUtil.AreClose(displayWidth, width.DisplayValue) || 1496return width.DisplayValue >= this.MinWidth && width.DisplayValue <= this.MaxWidth;
System\Windows\Controls\DataGridColumnCollection.cs (49)
884nonStarSpace += width.DisplayValue; 1091if (column.IsVisible && !double.IsNaN(width.DisplayValue)) 1093eligibleDisplayValue += width.DisplayValue; 1195if (!DoubleUtil.AreClose(width.DisplayValue, displayValue)) 1215if (DoubleUtil.GreaterThan(minWidth, width.DisplayValue)) 1219TakeAwayWidthFromColumns(changedColumn, minWidth - width.DisplayValue, false); 1228if (DoubleUtil.AreClose(width.DisplayValue, oldMinWidth)) 1258if (DoubleUtil.LessThan(maxWidth, width.DisplayValue)) 1262GiveAwayWidthToColumns(changedColumn, width.DisplayValue - maxWidth); 1313double leftOverSpace = GiveAwayWidthToNonStarColumns(null, oldWidth.DisplayValue - minWidth); 1364if (DoubleUtil.GreaterThan(width.DesiredValue, width.DisplayValue) && 1365!DoubleUtil.AreClose(width.DisplayValue, maxWidth)) 1380if (DoubleUtil.GreaterThan(width.DesiredValue, oldWidth.DisplayValue)) 1382double nonRetrievableSpace = TakeAwayWidthFromColumns(changedColumn, width.DesiredValue - oldWidth.DisplayValue, changedColumn != null); 1389Math.Max(width.DisplayValue - nonRetrievableSpace, changedColumn.MinWidth))); 1392else if (DoubleUtil.LessThan(width.DesiredValue, oldWidth.DisplayValue)) 1395GiveAwayWidthToColumns(changedColumn, oldWidth.DisplayValue - newDesiredValue); 1452requiredSpace += width.DisplayValue; 1505double expectedRezingColumnWidth = resizingColumnWidth.DisplayValue + horizontalChange; 1509horizontalChange = resizingColumn.MinWidth - resizingColumnWidth.DisplayValue; 1513horizontalChange = resizingColumn.MaxWidth - resizingColumnWidth.DisplayValue; 1619if (DoubleUtil.GreaterThan(width.DisplayValue, column.MinWidth)) 1622double excessRatio = (width.DisplayValue - column.MinWidth) / width.Value; 1669else if (column.Width.IsStar && CanColumnParticipateInResize(column) && DoubleUtil.GreaterThan(width.DisplayValue, column.MinWidth)) 1671double columnDesiredWidth = width.DisplayValue - (width.Value * changePerStar); 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)); 1788DoubleUtil.LessThan(width.DisplayValue, maxColumnResizeWidth)) 1790double columnLagWidth = maxColumnResizeWidth - width.DisplayValue; 1797column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + columnLagWidth)); 1869if (DoubleUtil.LessThan(width.DisplayValue, column.MaxWidth)) 1872double lagRatio = (column.MaxWidth - width.DisplayValue) / width.Value; 1918else if (column.Width.IsStar && CanColumnParticipateInResize(column) && DoubleUtil.LessThan(width.DisplayValue, column.MaxWidth)) 1920double columnDesiredWidth = width.DisplayValue + (width.Value * changePerStar); 1934double columnDisplayWidth = DataGridHelper.CoerceToMinMax(width.DisplayValue + widthDelta, column.MinWidth, column.MaxWidth); 1993sumOfStarDisplayWidths += width.DisplayValue; 2075if (DoubleUtil.LessThan(width.DisplayValue, width.DesiredValue) && 2076!DoubleUtil.AreClose(width.DisplayValue, columnMaxWidth)) 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)); 2129usedSpace += column.Width.DisplayValue; 2180usedSpace += column.Width.DisplayValue; 2265sumOfStarDisplayWidths += width.DisplayValue; 2338if (DoubleUtil.GreaterThan(width.DisplayValue, minWidth)) 2341double excessWidth = width.DisplayValue - minWidth; 2374if (DoubleUtil.GreaterThan(width.DisplayValue, column.MinWidth)) 2376column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue - perColumnTakeAwayWidth));
System\Windows\Controls\DataGridHelper.cs (1)
278column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, desiredWidth, width.DisplayValue));
System\Windows\Controls\DataGridLength.cs (8)
134&& ((gl1.DisplayValue == gl2.DisplayValue) || (double.IsNaN(gl1.DisplayValue) && double.IsNaN(gl2.DisplayValue))); 149|| ((gl1.DisplayValue != gl2.DisplayValue) && !(double.IsNaN(gl1.DisplayValue) && double.IsNaN(gl2.DisplayValue)));
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
170if (!measureAndArrangeInvalidated && !DoubleUtil.AreClose(cell.ActualWidth, columns[i].Width.DisplayValue)) 187if (!DoubleUtil.AreClose(cell.ActualWidth, columns[i].Width.DisplayValue))
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
919double columnEstimatedWidth = column.Width.DisplayValue;