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