28 instantiations of DataGridLength
PresentationFramework (28)
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (1)
176Column.Width = new DataGridLength(width);
src\Framework\System\Windows\Controls\DataGridColumn.cs (5)
275column.SetWidthInternal(new DataGridLength(changedWidth.Value, changedWidth.UnitType, changedWidth.DesiredValue, displayValue)); 409return new DataGridLength( 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 (14)
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))); 1387changedColumn.SetWidthInternal(new DataGridLength( 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)); 1949column.SetWidthInternal(new DataGridLength(columnDisplayWidth, DataGridLengthUnitType.Pixel, columnDisplayWidth, 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 (1)
279column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, desiredWidth, width.DisplayValue));
src\Framework\System\Windows\Controls\DataGridLength.cs (4)
336return new DataGridLength(value); 351private static readonly DataGridLength _auto = new DataGridLength(AutoValue, DataGridLengthUnitType.Auto, 0d, 0d); 352private static readonly DataGridLength _sizeToCells = new DataGridLength(AutoValue, DataGridLengthUnitType.SizeToCells, 0d, 0d); 353private static readonly DataGridLength _sizeToHeader = new DataGridLength(AutoValue, DataGridLengthUnitType.SizeToHeader, 0d, 0d);
src\Framework\System\Windows\Controls\DataGridLengthConverter.cs (3)
102return new DataGridLength(doubleValue, type); 217return new DataGridLength(1.0, (DataGridLengthUnitType)i); 283return new DataGridLength(value, unit);
86 references to DataGridLength
PresentationFramework (86)
src\Framework\System\Windows\Controls\DataGrid.cs (4)
147public DataGridLength ColumnWidth 149get { return (DataGridLength)GetValue(ColumnWidthProperty); } 157DependencyProperty.Register("ColumnWidth", typeof(DataGridLength), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridLength.SizeToHeader));
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (3)
118DataGridLength width = column.Width; 149DataGridLength width = column.Width; 578DataGridLength width = column.Width;
src\Framework\System\Windows\Controls\DataGridColumn.cs (17)
182public DataGridLength Width 184get { return (DataGridLength)GetValue(WidthProperty); } 194typeof(DataGridLength), 196new FrameworkPropertyMetadata(DataGridLength.Auto, new PropertyChangedCallback(OnWidthPropertyChanged), new CoerceValueCallback(OnCoerceWidth))); 204internal void SetWidthInternal(DataGridLength width) 227DataGridLength oldWidth = (DataGridLength)e.OldValue; 228DataGridLength newWidth = (DataGridLength)e.NewValue; 273DataGridLength changedWidth = column.Width; 278dataGrid.InternalColumns.RedistributeColumnWidthsOnWidthChangeOfColumn(column, (DataGridLength)e.OldValue); 394DataGridLength width = (DataGridLength)DataGridHelper.GetCoercedTransferPropertyValue( 493DataGridLength width = column.Width; 518DataGridLength width = Width; 548DataGridLength width = Width; 597DataGridLength width = Width;
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (34)
811DataGridLength width = column.Width; 883DataGridLength width = column.Width; 917DataGridLength width = column.Width; 946DataGridLength width = column.Width; 969DataGridLength width = column.Width; 1010DataGridLength width = column.Width; 1020DataGridLength width = column.Width; 1092DataGridLength width = column.Width; 1170column.Width = DataGridLength.Auto; 1192DataGridLength width = column.Width; 1215DataGridLength width = changedColumn.Width; 1258DataGridLength width = changedColumn.Width; 1293internal void RedistributeColumnWidthsOnWidthChangeOfColumn(DataGridColumn changedColumn, DataGridLength oldWidth) 1300DataGridLength width = changedColumn.Width; 1364DataGridLength width = column.Width; 1379private void RedistributeColumnWidthsOnNonStarWidthChange(DataGridColumn changedColumn, DataGridLength oldWidth) 1381DataGridLength width = changedColumn.Width; 1447DataGridLength width = column.Width; 1475_originalWidthsForResize = new Dictionary<DataGridColumn, DataGridLength>(); 1506DataGridLength resizingColumnWidth = resizingColumn.Width; 1618DataGridLength width = column.Width; 1666DataGridLength width = column.Width; 1702DataGridLength width = column.Width; 1787DataGridLength width = column.Width; 1868DataGridLength width = column.Width; 1915DataGridLength width = column.Width; 1935DataGridLength width = column.Width; 1987DataGridLength width = column.Width; 2070DataGridLength width = column.Width; 2106DataGridLength width = column.Width; 2259DataGridLength width = column.Width; 2333DataGridLength width = column.Width; 2370DataGridLength width = column.Width; 2545private Dictionary<DataGridColumn, DataGridLength> _originalWidthsForResize; // Dictionary to hold the original widths of columns for resize operation
src\Framework\System\Windows\Controls\DataGridHelper.cs (3)
253DataGridLength width = column.Width; 258DataGridLength oldWidth = (DataGridLength)e.OldValue;
src\Framework\System\Windows\Controls\DataGridLength.cs (16)
21public struct DataGridLength : IEquatable<DataGridLength> 130public static bool operator ==(DataGridLength gl1, DataGridLength gl2) 145public static bool operator !=(DataGridLength gl1, DataGridLength gl2) 161if (obj is DataGridLength) 163DataGridLength l = (DataGridLength)obj; 178public bool Equals(DataGridLength other) 303public static DataGridLength Auto 311public static DataGridLength SizeToCells 319public static DataGridLength SizeToHeader 334public static implicit operator DataGridLength(double value) 351private static readonly DataGridLength _auto = new DataGridLength(AutoValue, DataGridLengthUnitType.Auto, 0d, 0d); 352private static readonly DataGridLength _sizeToCells = new DataGridLength(AutoValue, DataGridLengthUnitType.SizeToCells, 0d, 0d); 353private static readonly DataGridLength _sizeToHeader = new DataGridLength(AutoValue, DataGridLengthUnitType.SizeToHeader, 0d, 0d);
src\Framework\System\Windows\Controls\DataGridLengthConverter.cs (6)
144if ((value != null) && (value is DataGridLength)) 146DataGridLength length = (DataGridLength)value; 155ConstructorInfo ci = typeof(DataGridLength).GetConstructor(new Type[] { typeof(double), typeof(DataGridLengthUnitType) }); 170internal static string ConvertToString(DataGridLength length, CultureInfo cultureInfo) 206private static DataGridLength ConvertFromString(string s, CultureInfo cultureInfo)
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (3)
372header.Column.Width = DataGridLength.Auto; 377private DataGridLength ColumnWidth 379get { return Column != null ? Column.Width : DataGridLength.Auto; }