20 references to Auto
PresentationFramework (20)
MS\Internal\PtsHost\TableParaClient.cs (2)
1956
case (GridUnitType.
Auto
):
2041
Debug.Assert(_calculatedColumns[i].UserWidth.GridUnitType == GridUnitType.
Auto
|| _calculatedColumns[i].UserWidth.GridUnitType == GridUnitType.Star || _calculatedColumns[i].UserWidth.GridUnitType == GridUnitType.Pixel, "Unexpected GridUnitType");
System\Windows\Controls\DefinitionBase.cs (3)
836
_userSize = new GridLength(1, GridUnitType.
Auto
);
840
Debug.Assert( _userSize.GridUnitType == GridUnitType.
Auto
846
if (_userSize.GridUnitType == GridUnitType.
Auto
)
System\Windows\Controls\Grid.cs (3)
1098
case (GridUnitType.
Auto
):
2127
case (GridUnitType.
Auto
):
2413
case (GridUnitType.
Auto
):
System\Windows\Controls\ScrollViewer.cs (2)
2706
gridColumn2.SetValue(ColumnDefinition.WidthProperty, new GridLength(1.0, GridUnitType.
Auto
));
2708
gridRow2.SetValue(RowDefinition.HeightProperty, new GridLength(1.0, GridUnitType.
Auto
));
System\Windows\Documents\TableColumn.cs (2)
173
internal static GridLength DefaultWidth { get { return (new GridLength(0, GridUnitType.
Auto
)); } }
234
new GridLength(0, GridUnitType.
Auto
),
System\Windows\GridLength.cs (5)
99
if ( type != GridUnitType.
Auto
106
_unitValue = (type == GridUnitType.
Auto
) ? 0.0 : value;
192
public bool IsAuto { get { return (_unitType == GridUnitType.
Auto
); } }
203
public double Value { get { return ((_unitType == GridUnitType.
Auto
) ? 1.0 : _unitValue); } }
249
private static readonly GridLength s_auto = new GridLength(1.0, GridUnitType.
Auto
);
System\Windows\GridLengthConverter.cs (2)
128
type = GridUnitType.
Auto
;
206
case (GridUnitType.
Auto
):
System\Windows\Markup\XamlGridLengthSerializer.cs (1)
231
&& unit is GridUnitType.
Auto
or GridUnitType.Star)