70 references to GridUnitType
Microsoft.VisualStudio.LanguageServices.CSharp (3)
SemanticSearch\SemanticSearchToolWindowImpl.cs (3)
114toolWindowGrid.RowDefinitions.Add(new RowDefinition() { Height = new GridLength(ToolBarHeight, GridUnitType.Pixel) }); 122toolbarGrid.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(ToolBarHeight, GridUnitType.Pixel) }); 123toolbarGrid.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(ToolBarHeight, GridUnitType.Pixel) });
PresentationFramework (67)
MS\Internal\PtsHost\TableParaClient.cs (7)
1956case (GridUnitType.Auto): 1962case (GridUnitType.Star): 1966case (GridUnitType.Pixel): 2041Debug.Assert(_calculatedColumns[i].UserWidth.GridUnitType == GridUnitType.Auto || _calculatedColumns[i].UserWidth.GridUnitType == GridUnitType.Star || _calculatedColumns[i].UserWidth.GridUnitType == GridUnitType.Pixel, "Unexpected GridUnitType"); 2063_calculatedColumns[i].UserWidth = new GridLength(iP, GridUnitType.Star);
System\Windows\Controls\BorderGapMaskConverter.cs (2)
91colDef3.Width = new GridLength(1, GridUnitType.Star); 98rowDef2.Height = new GridLength(1, GridUnitType.Star);
System\Windows\Controls\ColumnDefinition.cs (1)
1015new GridLength(1.0, GridUnitType.Star),
System\Windows\Controls\DefinitionBase.cs (5)
836_userSize = new GridLength(1, GridUnitType.Auto); 840Debug.Assert( _userSize.GridUnitType == GridUnitType.Auto 841|| _userSize.GridUnitType == GridUnitType.Pixel ); 844if (currentGridLength.GridUnitType == GridUnitType.Pixel) 846if (_userSize.GridUnitType == GridUnitType.Auto)
System\Windows\Controls\Grid.cs (7)
1092case (GridUnitType.Pixel): 1098case (GridUnitType.Auto): 1102case (GridUnitType.Star): 2123case (GridUnitType.Pixel): 2127case (GridUnitType.Auto): 2409case (GridUnitType.Pixel): 2413case (GridUnitType.Auto):
System\Windows\Controls\GridSplitter.cs (3)
842SetDefinitionLength(definition, new GridLength(definition1Pixels, GridUnitType.Star)); 846SetDefinitionLength(definition, new GridLength(definition2Pixels, GridUnitType.Star )); 850SetDefinitionLength(definition, new GridLength(GetActualLength(definition), GridUnitType.Star));
System\Windows\Controls\RowDefinition.cs (1)
1010new GridLength(1.0, GridUnitType.Star),
System\Windows\Controls\ScrollViewer.cs (4)
2705gridColumn1.SetValue(ColumnDefinition.WidthProperty, new GridLength(1.0, GridUnitType.Star)); 2706gridColumn2.SetValue(ColumnDefinition.WidthProperty, new GridLength(1.0, GridUnitType.Auto)); 2707gridRow1.SetValue(RowDefinition.HeightProperty, new GridLength(1.0, GridUnitType.Star)); 2708gridRow2.SetValue(RowDefinition.HeightProperty, new GridLength(1.0, GridUnitType.Auto));
System\Windows\Documents\TableColumn.cs (5)
173internal static GridLength DefaultWidth { get { return (new GridLength(0, GridUnitType.Auto)); } } 191if ((gridLength.GridUnitType == GridUnitType.Pixel || gridLength.GridUnitType == GridUnitType.Star) && 198if (gridLength.GridUnitType == GridUnitType.Pixel && (gridLength.Value > maxPixel)) 234new GridLength(0, GridUnitType.Auto),
System\Windows\GridLength.cs (13)
68: this(pixels, GridUnitType.Pixel) 89public GridLength(double value, GridUnitType type) 99if ( type != GridUnitType.Auto 100&& type != GridUnitType.Pixel 101&& type != GridUnitType.Star ) 106_unitValue = (type == GridUnitType.Auto) ? 0.0 : value; 186public bool IsAbsolute { get { return (_unitType == GridUnitType.Pixel); } } 192public bool IsAuto { get { return (_unitType == GridUnitType.Auto); } } 198public bool IsStar { get { return (_unitType == GridUnitType.Star); } } 203public double Value { get { return ((_unitType == GridUnitType.Auto) ? 1.0 : _unitValue); } } 208public GridUnitType GridUnitType { get { return (_unitType); } } 246private GridUnitType _unitType; // unit type storage 249private static readonly GridLength s_auto = new GridLength(1.0, GridUnitType.Auto);
System\Windows\GridLengthConverter.cs (7)
120GridUnitType type; 128type = GridUnitType.Auto; 132type = GridUnitType.Pixel; 178ConstructorInfo ci = typeof(GridLength).GetConstructor(new Type[] { typeof(double), typeof(GridUnitType) }); 206case (GridUnitType.Auto): 211case (GridUnitType.Star): 244GridUnitType unit;
System\Windows\Markup\XamlGridLengthSerializer.cs (12)
66GridUnitType gridUnitType; 81&& gridUnitType == GridUnitType.Pixel ) 137GridUnitType unitType; 143unitType = GridUnitType.Pixel; 148unitType = (GridUnitType)(unitAndFlags & 0x1F); 178out GridUnitType unit) 183unit = GridUnitType.Pixel; 196unit = (GridUnitType)i; 207unit = (GridUnitType)i; 231&& unit is GridUnitType.Auto or GridUnitType.Star) 238Debug.Assert( unit == GridUnitType.Pixel