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