30 instantiations of DataGridLength
PresentationFramework (30)
System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (1)
173
Column.Width = new
DataGridLength
(width);
System\Windows\Controls\DataGridCell.cs (2)
965
updatedWidth = new
DataGridLength
(Column.ActualWidth + ColumnWidthStepSize);
969
updatedWidth = new
DataGridLength
(Column.ActualWidth - ColumnWidthStepSize);
System\Windows\Controls\DataGridColumn.cs (5)
270
column.SetWidthInternal(new
DataGridLength
(changedWidth.Value, changedWidth.UnitType, changedWidth.DesiredValue, displayValue));
404
return new
DataGridLength
(
557
SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, pixelWidth, displayWidth));
562
SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, pixelWidth, width.DisplayValue));
598
SetWidthInternal(new
DataGridLength
(starValue, width.UnitType, desiredWidth, displayWidth));
System\Windows\Controls\DataGridColumnCollection.cs (14)
1189
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, displayValue));
1214
changedColumn.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, minWidth));
1233
changedColumn.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, displayValue));
1257
changedColumn.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, maxWidth));
1275
changedColumn.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, displayValue));
1306
changedColumn.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, minWidth + leftOverSpace));
1359
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, Math.Min(width.DesiredValue, maxWidth)));
1377
changedColumn.SetWidthInternal(new
DataGridLength
(
1704
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue - columnExcessWidth));
1789
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + columnLagWidth));
1935
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, columnDisplayWidth));
1939
column.SetWidthInternal(new
DataGridLength
(columnDisplayWidth, DataGridLengthUnitType.Pixel, columnDisplayWidth, columnDisplayWidth));
2104
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + perColumnGiveAwayWidth));
2368
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue - perColumnTakeAwayWidth));
System\Windows\Controls\DataGridHelper.cs (1)
271
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, desiredWidth, width.DisplayValue));
System\Windows\Controls\DataGridLength.cs (4)
330
return new
DataGridLength
(value);
345
private static readonly DataGridLength _auto = new
DataGridLength
(AutoValue, DataGridLengthUnitType.Auto, 0d, 0d);
346
private static readonly DataGridLength _sizeToCells = new
DataGridLength
(AutoValue, DataGridLengthUnitType.SizeToCells, 0d, 0d);
347
private static readonly DataGridLength _sizeToHeader = new
DataGridLength
(AutoValue, DataGridLengthUnitType.SizeToHeader, 0d, 0d);
System\Windows\Controls\DataGridLengthConverter.cs (3)
96
return new
DataGridLength
(doubleValue, type);
203
return new
DataGridLength
(1.0, (DataGridLengthUnitType)i);
262
return new
DataGridLength
(value, unit);
86 references to DataGridLength
PresentationFramework (86)
System\Windows\Controls\DataGrid.cs (4)
142
public
DataGridLength
ColumnWidth
144
get { return (
DataGridLength
)GetValue(ColumnWidthProperty); }
152
DependencyProperty.Register("ColumnWidth", typeof(
DataGridLength
), typeof(DataGrid), new FrameworkPropertyMetadata(
DataGridLength
.SizeToHeader));
System\Windows\Controls\DataGridCell.cs (1)
961
DataGridLength
updatedWidth;
System\Windows\Controls\DataGridCellsPanel.cs (3)
110
DataGridLength
width = column.Width;
141
DataGridLength
width = column.Width;
570
DataGridLength
width = column.Width;
System\Windows\Controls\DataGridColumn.cs (18)
177
public
DataGridLength
Width
179
get { return (
DataGridLength
)GetValue(WidthProperty); }
189
typeof(
DataGridLength
),
191
new FrameworkPropertyMetadata(
DataGridLength
.Auto, new PropertyChangedCallback(OnWidthPropertyChanged), new CoerceValueCallback(OnCoerceWidth)));
199
internal void SetWidthInternal(
DataGridLength
width)
222
DataGridLength
oldWidth = (
DataGridLength
)e.OldValue;
223
DataGridLength
newWidth = (
DataGridLength
)e.NewValue;
268
DataGridLength
changedWidth = column.Width;
273
dataGrid.InternalColumns.RedistributeColumnWidthsOnWidthChangeOfColumn(column, (
DataGridLength
)e.OldValue);
389
DataGridLength
width = (
DataGridLength
)DataGridHelper.GetCoercedTransferPropertyValue(
488
DataGridLength
width = column.Width;
513
DataGridLength
width = Width;
543
DataGridLength
width = Width;
592
DataGridLength
width = Width;
1478
internal bool CanColumnResize(
DataGridLength
width)
System\Windows\Controls\DataGridColumnCollection.cs (34)
804
DataGridLength
width = column.Width;
876
DataGridLength
width = column.Width;
910
DataGridLength
width = column.Width;
939
DataGridLength
width = column.Width;
962
DataGridLength
width = column.Width;
1003
DataGridLength
width = column.Width;
1013
DataGridLength
width = column.Width;
1082
DataGridLength
width = column.Width;
1160
column.Width =
DataGridLength
.Auto;
1182
DataGridLength
width = column.Width;
1205
DataGridLength
width = changedColumn.Width;
1248
DataGridLength
width = changedColumn.Width;
1283
internal void RedistributeColumnWidthsOnWidthChangeOfColumn(DataGridColumn changedColumn,
DataGridLength
oldWidth)
1290
DataGridLength
width = changedColumn.Width;
1354
DataGridLength
width = column.Width;
1369
private void RedistributeColumnWidthsOnNonStarWidthChange(DataGridColumn changedColumn,
DataGridLength
oldWidth)
1371
DataGridLength
width = changedColumn.Width;
1437
DataGridLength
width = column.Width;
1465
_originalWidthsForResize = new Dictionary<DataGridColumn,
DataGridLength
>();
1496
DataGridLength
resizingColumnWidth = resizingColumn.Width;
1608
DataGridLength
width = column.Width;
1656
DataGridLength
width = column.Width;
1692
DataGridLength
width = column.Width;
1777
DataGridLength
width = column.Width;
1858
DataGridLength
width = column.Width;
1905
DataGridLength
width = column.Width;
1925
DataGridLength
width = column.Width;
1977
DataGridLength
width = column.Width;
2060
DataGridLength
width = column.Width;
2096
DataGridLength
width = column.Width;
2249
DataGridLength
width = column.Width;
2323
DataGridLength
width = column.Width;
2360
DataGridLength
width = column.Width;
2535
private Dictionary<DataGridColumn,
DataGridLength
> _originalWidthsForResize; // Dictionary to hold the original widths of columns for resize operation
System\Windows\Controls\DataGridHelper.cs (3)
245
DataGridLength
width = column.Width;
250
DataGridLength
oldWidth = (
DataGridLength
)e.OldValue;
System\Windows\Controls\DataGridLength.cs (14)
16
public struct DataGridLength : IEquatable<
DataGridLength
>
125
public static bool operator ==(
DataGridLength
gl1,
DataGridLength
gl2)
140
public static bool operator !=(
DataGridLength
gl1,
DataGridLength
gl2)
156
if (obj is
DataGridLength
l)
172
public bool Equals(
DataGridLength
other)
297
public static
DataGridLength
Auto
305
public static
DataGridLength
SizeToCells
313
public static
DataGridLength
SizeToHeader
328
public static implicit operator
DataGridLength
(double value)
345
private static readonly
DataGridLength
_auto = new DataGridLength(AutoValue, DataGridLengthUnitType.Auto, 0d, 0d);
346
private static readonly
DataGridLength
_sizeToCells = new DataGridLength(AutoValue, DataGridLengthUnitType.SizeToCells, 0d, 0d);
347
private static readonly
DataGridLength
_sizeToHeader = new DataGridLength(AutoValue, DataGridLengthUnitType.SizeToHeader, 0d, 0d);
System\Windows\Controls\DataGridLengthConverter.cs (6)
130
if ((value != null) && (value is
DataGridLength
))
132
DataGridLength
length = (
DataGridLength
)value;
141
ConstructorInfo ci = typeof(
DataGridLength
).GetConstructor(new Type[] { typeof(double), typeof(DataGridLengthUnitType) });
156
internal static string ConvertToString(
DataGridLength
length, CultureInfo cultureInfo)
192
private static
DataGridLength
ConvertFromString(string s, CultureInfo cultureInfo)
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (3)
356
header.Column.Width =
DataGridLength
.Auto;
361
private
DataGridLength
ColumnWidth
363
get { return Column != null ? Column.Width :
DataGridLength
.Auto; }