30 references to UnitType
PresentationFramework (30)
src\Framework\System\Windows\Controls\DataGridColumn.cs (7)
275
column.SetWidthInternal(new DataGridLength(changedWidth.Value, changedWidth.
UnitType
, changedWidth.DesiredValue, displayValue));
401
double newDesiredValue = CoerceDesiredOrDisplayWidthValue(width.Value, width.DesiredValue, width.
UnitType
);
402
double newDisplayValue = CoerceDesiredOrDisplayWidthValue(width.Value, width.DisplayValue, width.
UnitType
);
411
width.
UnitType
,
562
SetWidthInternal(new DataGridLength(width.Value, width.
UnitType
, pixelWidth, displayWidth));
567
SetWidthInternal(new DataGridLength(width.Value, width.
UnitType
, pixelWidth, width.DisplayValue));
603
SetWidthInternal(new DataGridLength(starValue, width.
UnitType
, desiredWidth, displayWidth));
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (13)
1199
column.SetWidthInternal(new DataGridLength(width.Value, width.
UnitType
, width.DesiredValue, displayValue));
1224
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.
UnitType
, width.DesiredValue, minWidth));
1243
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.
UnitType
, width.DesiredValue, displayValue));
1267
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.
UnitType
, width.DesiredValue, maxWidth));
1285
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.
UnitType
, width.DesiredValue, displayValue));
1316
changedColumn.SetWidthInternal(new DataGridLength(width.Value, width.
UnitType
, width.DesiredValue, minWidth + leftOverSpace));
1369
column.SetWidthInternal(new DataGridLength(width.Value, width.
UnitType
, width.DesiredValue, Math.Min(width.DesiredValue, maxWidth)));
1389
width.
UnitType
,
1714
column.SetWidthInternal(new DataGridLength(width.Value, width.
UnitType
, width.DesiredValue, width.DisplayValue - columnExcessWidth));
1799
column.SetWidthInternal(new DataGridLength(width.Value, width.
UnitType
, width.DesiredValue, width.DisplayValue + columnLagWidth));
1945
column.SetWidthInternal(new DataGridLength(width.Value, width.
UnitType
, width.DesiredValue, columnDisplayWidth));
2114
column.SetWidthInternal(new DataGridLength(width.Value, width.
UnitType
, width.DesiredValue, width.DisplayValue + perColumnGiveAwayWidth));
2378
column.SetWidthInternal(new DataGridLength(width.Value, width.
UnitType
, width.DesiredValue, width.DisplayValue - perColumnTakeAwayWidth));
src\Framework\System\Windows\Controls\DataGridHelper.cs (3)
260
if (oldWidth.
UnitType
!= width.
UnitType
)
279
column.SetWidthInternal(new DataGridLength(width.Value, width.
UnitType
, desiredWidth, width.DisplayValue));
src\Framework\System\Windows\Controls\DataGridLength.cs (4)
132
return gl1.
UnitType
== gl2.
UnitType
147
return gl1.
UnitType
!= gl2.
UnitType
src\Framework\System\Windows\Controls\DataGridLengthConverter.cs (3)
156
return new InstanceDescriptor(ci, new object[] { length.Value, length.
UnitType
});
172
switch (length.
UnitType
)
177
return length.
UnitType
.ToString();