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