30 instantiations of DataGridLength
PresentationFramework (30)
System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (1)
174
Column.Width = new
DataGridLength
(width);
System\Windows\Controls\DataGridCell.cs (2)
966
updatedWidth = new
DataGridLength
(Column.ActualWidth + ColumnWidthStepSize);
970
updatedWidth = new
DataGridLength
(Column.ActualWidth - ColumnWidthStepSize);
System\Windows\Controls\DataGridColumn.cs (5)
271
column.SetWidthInternal(new
DataGridLength
(changedWidth.Value, changedWidth.UnitType, changedWidth.DesiredValue, displayValue));
405
return new
DataGridLength
(
558
SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, pixelWidth, displayWidth));
563
SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, pixelWidth, width.DisplayValue));
599
SetWidthInternal(new
DataGridLength
(starValue, width.UnitType, desiredWidth, displayWidth));
System\Windows\Controls\DataGridColumnCollection.cs (14)
1190
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, displayValue));
1215
changedColumn.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, minWidth));
1234
changedColumn.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, displayValue));
1258
changedColumn.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, maxWidth));
1276
changedColumn.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, displayValue));
1307
changedColumn.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, minWidth + leftOverSpace));
1360
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, Math.Min(width.DesiredValue, maxWidth)));
1378
changedColumn.SetWidthInternal(new
DataGridLength
(
1705
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue - columnExcessWidth));
1790
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + columnLagWidth));
1936
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, columnDisplayWidth));
1940
column.SetWidthInternal(new
DataGridLength
(columnDisplayWidth, DataGridLengthUnitType.Pixel, columnDisplayWidth, columnDisplayWidth));
2105
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + perColumnGiveAwayWidth));
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 (4)
331
return new
DataGridLength
(value);
346
private static readonly DataGridLength _auto = new
DataGridLength
(AutoValue, DataGridLengthUnitType.Auto, 0d, 0d);
347
private static readonly DataGridLength _sizeToCells = new
DataGridLength
(AutoValue, DataGridLengthUnitType.SizeToCells, 0d, 0d);
348
private static readonly DataGridLength _sizeToHeader = new
DataGridLength
(AutoValue, DataGridLengthUnitType.SizeToHeader, 0d, 0d);
System\Windows\Controls\DataGridLengthConverter.cs (3)
97
return new
DataGridLength
(doubleValue, type);
204
return new
DataGridLength
(1.0, (DataGridLengthUnitType)i);
263
return new
DataGridLength
(value, unit);
86 references to DataGridLength
PresentationFramework (86)
System\Windows\Controls\DataGrid.cs (4)
143
public
DataGridLength
ColumnWidth
145
get { return (
DataGridLength
)GetValue(ColumnWidthProperty); }
153
DependencyProperty.Register("ColumnWidth", typeof(
DataGridLength
), typeof(DataGrid), new FrameworkPropertyMetadata(
DataGridLength
.SizeToHeader));
System\Windows\Controls\DataGridCell.cs (1)
962
DataGridLength
updatedWidth;
System\Windows\Controls\DataGridCellsPanel.cs (3)
111
DataGridLength
width = column.Width;
142
DataGridLength
width = column.Width;
571
DataGridLength
width = column.Width;
System\Windows\Controls\DataGridColumn.cs (18)
178
public
DataGridLength
Width
180
get { return (
DataGridLength
)GetValue(WidthProperty); }
190
typeof(
DataGridLength
),
192
new FrameworkPropertyMetadata(
DataGridLength
.Auto, new PropertyChangedCallback(OnWidthPropertyChanged), new CoerceValueCallback(OnCoerceWidth)));
200
internal void SetWidthInternal(
DataGridLength
width)
223
DataGridLength
oldWidth = (
DataGridLength
)e.OldValue;
224
DataGridLength
newWidth = (
DataGridLength
)e.NewValue;
269
DataGridLength
changedWidth = column.Width;
274
dataGrid.InternalColumns.RedistributeColumnWidthsOnWidthChangeOfColumn(column, (
DataGridLength
)e.OldValue);
390
DataGridLength
width = (
DataGridLength
)DataGridHelper.GetCoercedTransferPropertyValue(
489
DataGridLength
width = column.Width;
514
DataGridLength
width = Width;
544
DataGridLength
width = Width;
593
DataGridLength
width = Width;
1479
internal bool CanColumnResize(
DataGridLength
width)
System\Windows\Controls\DataGridColumnCollection.cs (34)
805
DataGridLength
width = column.Width;
877
DataGridLength
width = column.Width;
911
DataGridLength
width = column.Width;
940
DataGridLength
width = column.Width;
963
DataGridLength
width = column.Width;
1004
DataGridLength
width = column.Width;
1014
DataGridLength
width = column.Width;
1083
DataGridLength
width = column.Width;
1161
column.Width =
DataGridLength
.Auto;
1183
DataGridLength
width = column.Width;
1206
DataGridLength
width = changedColumn.Width;
1249
DataGridLength
width = changedColumn.Width;
1284
internal void RedistributeColumnWidthsOnWidthChangeOfColumn(DataGridColumn changedColumn,
DataGridLength
oldWidth)
1291
DataGridLength
width = changedColumn.Width;
1355
DataGridLength
width = column.Width;
1370
private void RedistributeColumnWidthsOnNonStarWidthChange(DataGridColumn changedColumn,
DataGridLength
oldWidth)
1372
DataGridLength
width = changedColumn.Width;
1438
DataGridLength
width = column.Width;
1466
_originalWidthsForResize = new Dictionary<DataGridColumn,
DataGridLength
>();
1497
DataGridLength
resizingColumnWidth = resizingColumn.Width;
1609
DataGridLength
width = column.Width;
1657
DataGridLength
width = column.Width;
1693
DataGridLength
width = column.Width;
1778
DataGridLength
width = column.Width;
1859
DataGridLength
width = column.Width;
1906
DataGridLength
width = column.Width;
1926
DataGridLength
width = column.Width;
1978
DataGridLength
width = column.Width;
2061
DataGridLength
width = column.Width;
2097
DataGridLength
width = column.Width;
2250
DataGridLength
width = column.Width;
2324
DataGridLength
width = column.Width;
2361
DataGridLength
width = column.Width;
2536
private Dictionary<DataGridColumn,
DataGridLength
> _originalWidthsForResize; // Dictionary to hold the original widths of columns for resize operation
System\Windows\Controls\DataGridHelper.cs (3)
246
DataGridLength
width = column.Width;
251
DataGridLength
oldWidth = (
DataGridLength
)e.OldValue;
System\Windows\Controls\DataGridLength.cs (14)
17
public struct DataGridLength : IEquatable<
DataGridLength
>
126
public static bool operator ==(
DataGridLength
gl1,
DataGridLength
gl2)
141
public static bool operator !=(
DataGridLength
gl1,
DataGridLength
gl2)
157
if (obj is
DataGridLength
l)
173
public bool Equals(
DataGridLength
other)
298
public static
DataGridLength
Auto
306
public static
DataGridLength
SizeToCells
314
public static
DataGridLength
SizeToHeader
329
public static implicit operator
DataGridLength
(double value)
346
private static readonly
DataGridLength
_auto = new DataGridLength(AutoValue, DataGridLengthUnitType.Auto, 0d, 0d);
347
private static readonly
DataGridLength
_sizeToCells = new DataGridLength(AutoValue, DataGridLengthUnitType.SizeToCells, 0d, 0d);
348
private static readonly
DataGridLength
_sizeToHeader = new DataGridLength(AutoValue, DataGridLengthUnitType.SizeToHeader, 0d, 0d);
System\Windows\Controls\DataGridLengthConverter.cs (6)
131
if ((value != null) && (value is
DataGridLength
))
133
DataGridLength
length = (
DataGridLength
)value;
142
ConstructorInfo ci = typeof(
DataGridLength
).GetConstructor(new Type[] { typeof(double), typeof(DataGridLengthUnitType) });
157
internal static string ConvertToString(
DataGridLength
length, CultureInfo cultureInfo)
193
private static
DataGridLength
ConvertFromString(string s, CultureInfo cultureInfo)
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (3)
357
header.Column.Width =
DataGridLength
.Auto;
362
private
DataGridLength
ColumnWidth
364
get { return Column != null ? Column.Width :
DataGridLength
.Auto; }