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