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