30 instantiations of DataGridLength
PresentationFramework (30)
System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (1)
180
Column.Width = new
DataGridLength
(width);
System\Windows\Controls\DataGridCell.cs (2)
984
updatedWidth = new
DataGridLength
(Column.ActualWidth + ColumnWidthStepSize);
988
updatedWidth = new
DataGridLength
(Column.ActualWidth - ColumnWidthStepSize);
System\Windows\Controls\DataGridColumn.cs (5)
274
column.SetWidthInternal(new
DataGridLength
(changedWidth.Value, changedWidth.UnitType, changedWidth.DesiredValue, displayValue));
408
return new
DataGridLength
(
561
SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, pixelWidth, displayWidth));
566
SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, pixelWidth, width.DisplayValue));
602
SetWidthInternal(new
DataGridLength
(starValue, width.UnitType, desiredWidth, displayWidth));
System\Windows\Controls\DataGridColumnCollection.cs (14)
1197
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, displayValue));
1222
changedColumn.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, minWidth));
1241
changedColumn.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, displayValue));
1265
changedColumn.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, maxWidth));
1283
changedColumn.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, displayValue));
1314
changedColumn.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, minWidth + leftOverSpace));
1367
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, Math.Min(width.DesiredValue, maxWidth)));
1385
changedColumn.SetWidthInternal(new
DataGridLength
(
1712
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue - columnExcessWidth));
1797
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + columnLagWidth));
1943
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, columnDisplayWidth));
1947
column.SetWidthInternal(new
DataGridLength
(columnDisplayWidth, DataGridLengthUnitType.Pixel, columnDisplayWidth, columnDisplayWidth));
2112
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue + perColumnGiveAwayWidth));
2376
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, width.DesiredValue, width.DisplayValue - perColumnTakeAwayWidth));
System\Windows\Controls\DataGridHelper.cs (1)
278
column.SetWidthInternal(new
DataGridLength
(width.Value, width.UnitType, desiredWidth, width.DisplayValue));
System\Windows\Controls\DataGridLength.cs (4)
335
return new
DataGridLength
(value);
350
private static readonly DataGridLength _auto = new
DataGridLength
(AutoValue, DataGridLengthUnitType.Auto, 0d, 0d);
351
private static readonly DataGridLength _sizeToCells = new
DataGridLength
(AutoValue, DataGridLengthUnitType.SizeToCells, 0d, 0d);
352
private static readonly DataGridLength _sizeToHeader = new
DataGridLength
(AutoValue, DataGridLengthUnitType.SizeToHeader, 0d, 0d);
System\Windows\Controls\DataGridLengthConverter.cs (3)
101
return new
DataGridLength
(doubleValue, type);
208
return new
DataGridLength
(1.0, (DataGridLengthUnitType)i);
267
return new
DataGridLength
(value, unit);
88 references to DataGridLength
PresentationFramework (88)
System\Windows\Controls\DataGrid.cs (4)
146
public
DataGridLength
ColumnWidth
148
get { return (
DataGridLength
)GetValue(ColumnWidthProperty); }
156
DependencyProperty.Register("ColumnWidth", typeof(
DataGridLength
), typeof(DataGrid), new FrameworkPropertyMetadata(
DataGridLength
.SizeToHeader));
System\Windows\Controls\DataGridCell.cs (1)
980
DataGridLength
updatedWidth;
System\Windows\Controls\DataGridCellsPanel.cs (3)
116
DataGridLength
width = column.Width;
147
DataGridLength
width = column.Width;
576
DataGridLength
width = column.Width;
System\Windows\Controls\DataGridColumn.cs (18)
181
public
DataGridLength
Width
183
get { return (
DataGridLength
)GetValue(WidthProperty); }
193
typeof(
DataGridLength
),
195
new FrameworkPropertyMetadata(
DataGridLength
.Auto, new PropertyChangedCallback(OnWidthPropertyChanged), new CoerceValueCallback(OnCoerceWidth)));
203
internal void SetWidthInternal(
DataGridLength
width)
226
DataGridLength
oldWidth = (
DataGridLength
)e.OldValue;
227
DataGridLength
newWidth = (
DataGridLength
)e.NewValue;
272
DataGridLength
changedWidth = column.Width;
277
dataGrid.InternalColumns.RedistributeColumnWidthsOnWidthChangeOfColumn(column, (
DataGridLength
)e.OldValue);
393
DataGridLength
width = (
DataGridLength
)DataGridHelper.GetCoercedTransferPropertyValue(
492
DataGridLength
width = column.Width;
517
DataGridLength
width = Width;
547
DataGridLength
width = Width;
596
DataGridLength
width = Width;
1489
internal bool CanColumnResize(
DataGridLength
width)
System\Windows\Controls\DataGridColumnCollection.cs (34)
809
DataGridLength
width = column.Width;
881
DataGridLength
width = column.Width;
915
DataGridLength
width = column.Width;
944
DataGridLength
width = column.Width;
967
DataGridLength
width = column.Width;
1008
DataGridLength
width = column.Width;
1018
DataGridLength
width = column.Width;
1090
DataGridLength
width = column.Width;
1168
column.Width =
DataGridLength
.Auto;
1190
DataGridLength
width = column.Width;
1213
DataGridLength
width = changedColumn.Width;
1256
DataGridLength
width = changedColumn.Width;
1291
internal void RedistributeColumnWidthsOnWidthChangeOfColumn(DataGridColumn changedColumn,
DataGridLength
oldWidth)
1298
DataGridLength
width = changedColumn.Width;
1362
DataGridLength
width = column.Width;
1377
private void RedistributeColumnWidthsOnNonStarWidthChange(DataGridColumn changedColumn,
DataGridLength
oldWidth)
1379
DataGridLength
width = changedColumn.Width;
1445
DataGridLength
width = column.Width;
1473
_originalWidthsForResize = new Dictionary<DataGridColumn,
DataGridLength
>();
1504
DataGridLength
resizingColumnWidth = resizingColumn.Width;
1616
DataGridLength
width = column.Width;
1664
DataGridLength
width = column.Width;
1700
DataGridLength
width = column.Width;
1785
DataGridLength
width = column.Width;
1866
DataGridLength
width = column.Width;
1913
DataGridLength
width = column.Width;
1933
DataGridLength
width = column.Width;
1985
DataGridLength
width = column.Width;
2068
DataGridLength
width = column.Width;
2104
DataGridLength
width = column.Width;
2257
DataGridLength
width = column.Width;
2331
DataGridLength
width = column.Width;
2368
DataGridLength
width = column.Width;
2543
private Dictionary<DataGridColumn,
DataGridLength
> _originalWidthsForResize; // Dictionary to hold the original widths of columns for resize operation
System\Windows\Controls\DataGridHelper.cs (3)
252
DataGridLength
width = column.Width;
257
DataGridLength
oldWidth = (
DataGridLength
)e.OldValue;
System\Windows\Controls\DataGridLength.cs (16)
20
public struct DataGridLength : IEquatable<
DataGridLength
>
129
public static bool operator ==(
DataGridLength
gl1,
DataGridLength
gl2)
144
public static bool operator !=(
DataGridLength
gl1,
DataGridLength
gl2)
160
if (obj is
DataGridLength
)
162
DataGridLength
l = (
DataGridLength
)obj;
177
public bool Equals(
DataGridLength
other)
302
public static
DataGridLength
Auto
310
public static
DataGridLength
SizeToCells
318
public static
DataGridLength
SizeToHeader
333
public static implicit operator
DataGridLength
(double value)
350
private static readonly
DataGridLength
_auto = new DataGridLength(AutoValue, DataGridLengthUnitType.Auto, 0d, 0d);
351
private static readonly
DataGridLength
_sizeToCells = new DataGridLength(AutoValue, DataGridLengthUnitType.SizeToCells, 0d, 0d);
352
private static readonly
DataGridLength
_sizeToHeader = new DataGridLength(AutoValue, DataGridLengthUnitType.SizeToHeader, 0d, 0d);
System\Windows\Controls\DataGridLengthConverter.cs (6)
135
if ((value != null) && (value is
DataGridLength
))
137
DataGridLength
length = (
DataGridLength
)value;
146
ConstructorInfo ci = typeof(
DataGridLength
).GetConstructor(new Type[] { typeof(double), typeof(DataGridLengthUnitType) });
161
internal static string ConvertToString(
DataGridLength
length, CultureInfo cultureInfo)
197
private static
DataGridLength
ConvertFromString(string s, CultureInfo cultureInfo)
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (3)
371
header.Column.Width =
DataGridLength
.Auto;
376
private
DataGridLength
ColumnWidth
378
get { return Column != null ? Column.Width :
DataGridLength
.Auto; }