85 references to DisplayValue
PresentationFramework (85)
System\Windows\Controls\DataGridCellsPanel.cs (7)
144
!double.IsNaN(width.
DisplayValue
) &&
145
DoubleUtil.GreaterThan(desiredWidth, width.
DisplayValue
))
147
childMeasureConstraint.Width = width.
DisplayValue
;
573
if (!double.IsNaN(width.
DisplayValue
))
575
childSize = new Size(width.
DisplayValue
, childSize.Height);
1467
childWidth = cell.Column.Width.
DisplayValue
;
1896
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
) ||
1486
return width.
DisplayValue
>= this.MinWidth && width.
DisplayValue
<= this.MaxWidth;
System\Windows\Controls\DataGridColumnCollection.cs (49)
880
nonStarSpace += width.
DisplayValue
;
1084
if (column.IsVisible && !double.IsNaN(width.
DisplayValue
))
1086
eligibleDisplayValue += width.
DisplayValue
;
1188
if (!DoubleUtil.AreClose(width.
DisplayValue
, displayValue))
1208
if (DoubleUtil.GreaterThan(minWidth, width.
DisplayValue
))
1212
TakeAwayWidthFromColumns(changedColumn, minWidth - width.
DisplayValue
, false);
1221
if (DoubleUtil.AreClose(width.
DisplayValue
, oldMinWidth))
1251
if (DoubleUtil.LessThan(maxWidth, width.
DisplayValue
))
1255
GiveAwayWidthToColumns(changedColumn, width.
DisplayValue
- maxWidth);
1306
double leftOverSpace = GiveAwayWidthToNonStarColumns(null, oldWidth.
DisplayValue
- minWidth);
1357
if (DoubleUtil.GreaterThan(width.DesiredValue, width.
DisplayValue
) &&
1358
!DoubleUtil.AreClose(width.
DisplayValue
, maxWidth))
1373
if (DoubleUtil.GreaterThan(width.DesiredValue, oldWidth.
DisplayValue
))
1375
double nonRetrievableSpace = TakeAwayWidthFromColumns(changedColumn, width.DesiredValue - oldWidth.
DisplayValue
, changedColumn != null);
1382
Math.Max(width.
DisplayValue
- nonRetrievableSpace, changedColumn.MinWidth)));
1385
else if (DoubleUtil.LessThan(width.DesiredValue, oldWidth.
DisplayValue
))
1388
GiveAwayWidthToColumns(changedColumn, oldWidth.
DisplayValue
- newDesiredValue);
1445
requiredSpace += width.
DisplayValue
;
1498
double expectedRezingColumnWidth = resizingColumnWidth.
DisplayValue
+ horizontalChange;
1502
horizontalChange = resizingColumn.MinWidth - resizingColumnWidth.
DisplayValue
;
1506
horizontalChange = resizingColumn.MaxWidth - resizingColumnWidth.
DisplayValue
;
1612
if (DoubleUtil.GreaterThan(width.
DisplayValue
, column.MinWidth))
1615
double excessRatio = (width.
DisplayValue
- column.MinWidth) / width.Value;
1662
else if (column.Width.IsStar && CanColumnParticipateInResize(column) && DoubleUtil.GreaterThan(width.
DisplayValue
, column.MinWidth))
1664
double columnDesiredWidth = width.
DisplayValue
- (width.Value * changePerStar);
1694
double columnExcessWidth = onlyShrinkToDesiredWidth ? width.
DisplayValue
- Math.Max(width.DesiredValue, column.MinWidth) : width.
DisplayValue
- column.MinWidth;
1705
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.
DisplayValue
- columnExcessWidth));
1781
DoubleUtil.LessThan(width.
DisplayValue
, maxColumnResizeWidth))
1783
double columnLagWidth = maxColumnResizeWidth - width.
DisplayValue
;
1790
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.
DisplayValue
+ columnLagWidth));
1862
if (DoubleUtil.LessThan(width.
DisplayValue
, column.MaxWidth))
1865
double lagRatio = (column.MaxWidth - width.
DisplayValue
) / width.Value;
1911
else if (column.Width.IsStar && CanColumnParticipateInResize(column) && DoubleUtil.LessThan(width.
DisplayValue
, column.MaxWidth))
1913
double columnDesiredWidth = width.
DisplayValue
+ (width.Value * changePerStar);
1927
double columnDisplayWidth = DataGridHelper.CoerceToMinMax(width.
DisplayValue
+ widthDelta, column.MinWidth, column.MaxWidth);
1986
sumOfStarDisplayWidths += width.
DisplayValue
;
2068
if (DoubleUtil.LessThan(width.
DisplayValue
, width.DesiredValue) &&
2069
!DoubleUtil.AreClose(width.
DisplayValue
, columnMaxWidth))
2072
double lagWidth = Math.Min(width.DesiredValue, columnMaxWidth) - width.
DisplayValue
;
2103
if (DoubleUtil.LessThan(width.
DisplayValue
, Math.Min(width.DesiredValue, column.MaxWidth)))
2105
column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, width.
DisplayValue
+ perColumnGiveAwayWidth));
2122
usedSpace += column.Width.
DisplayValue
;
2173
usedSpace += column.Width.
DisplayValue
;
2258
sumOfStarDisplayWidths += width.
DisplayValue
;
2331
if (DoubleUtil.GreaterThan(width.
DisplayValue
, minWidth))
2334
double excessWidth = width.
DisplayValue
- minWidth;
2367
if (DoubleUtil.GreaterThan(width.
DisplayValue
, column.MinWidth))
2369
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)
909
double columnEstimatedWidth = column.Width.
DisplayValue
;