20 references to Auto
PresentationFramework (20)
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (2)
2083
case (GridUnitType.
Auto
):
2168
Debug.Assert(_calculatedColumns[i].UserWidth.GridUnitType == GridUnitType.
Auto
|| _calculatedColumns[i].UserWidth.GridUnitType == GridUnitType.Star || _calculatedColumns[i].UserWidth.GridUnitType == GridUnitType.Pixel, "Unexpected GridUnitType");
src\Framework\System\Windows\Controls\DefinitionBase.cs (3)
842
_userSize = new GridLength(1, GridUnitType.
Auto
);
846
Debug.Assert( _userSize.GridUnitType == GridUnitType.
Auto
852
if (_userSize.GridUnitType == GridUnitType.
Auto
)
src\Framework\System\Windows\Controls\Grid.cs (3)
1171
case (GridUnitType.
Auto
):
2201
case (GridUnitType.
Auto
):
2490
case (GridUnitType.
Auto
):
src\Framework\System\Windows\Controls\ScrollViewer.cs (2)
2746
gridColumn2.SetValue(ColumnDefinition.WidthProperty, new GridLength(1.0, GridUnitType.
Auto
));
2748
gridRow2.SetValue(RowDefinition.HeightProperty, new GridLength(1.0, GridUnitType.
Auto
));
src\Framework\System\Windows\Documents\TableColumn.cs (2)
186
internal static GridLength DefaultWidth { get { return (new GridLength(0, GridUnitType.
Auto
)); } }
247
new GridLength(0, GridUnitType.
Auto
),
src\Framework\System\Windows\GridLength.cs (5)
104
if ( type != GridUnitType.
Auto
111
_unitValue = (type == GridUnitType.
Auto
) ? 0.0 : value;
198
public bool IsAuto { get { return (_unitType == GridUnitType.
Auto
); } }
209
public double Value { get { return ((_unitType == GridUnitType.
Auto
) ? 1.0 : _unitValue); } }
255
private static readonly GridLength s_auto = new GridLength(1.0, GridUnitType.
Auto
);
src\Framework\System\Windows\GridLengthConverter.cs (2)
137
type = GridUnitType.
Auto
;
223
case (GridUnitType.
Auto
):
src\Framework\System\Windows\Markup\XamlGridLengthSerializer.cs (1)
254
&& ( unit == GridUnitType.
Auto