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)
1962case (GridUnitType.Auto): 1968case (GridUnitType.Star): 1972case (GridUnitType.Pixel): 2047Debug.Assert(_calculatedColumns[i].UserWidth.GridUnitType == GridUnitType.Auto || _calculatedColumns[i].UserWidth.GridUnitType == GridUnitType.Star || _calculatedColumns[i].UserWidth.GridUnitType == GridUnitType.Pixel, "Unexpected GridUnitType"); 2069_calculatedColumns[i].UserWidth = new GridLength(iP, GridUnitType.Star);
System\Windows\Controls\BorderGapMaskConverter.cs (2)
90colDef3.Width = new GridLength(1, GridUnitType.Star); 97rowDef2.Height = new GridLength(1, GridUnitType.Star);
System\Windows\Controls\ColumnDefinition.cs (1)
1027new GridLength(1.0, GridUnitType.Star),
System\Windows\Controls\DefinitionBase.cs (5)
843_userSize = new GridLength(1, GridUnitType.Auto); 847Debug.Assert( _userSize.GridUnitType == GridUnitType.Auto 848|| _userSize.GridUnitType == GridUnitType.Pixel ); 851if (currentGridLength.GridUnitType == GridUnitType.Pixel) 853if (_userSize.GridUnitType == GridUnitType.Auto)
System\Windows\Controls\Grid.cs (7)
1102case (GridUnitType.Pixel): 1108case (GridUnitType.Auto): 1112case (GridUnitType.Star): 2133case (GridUnitType.Pixel): 2137case (GridUnitType.Auto): 2419case (GridUnitType.Pixel): 2423case (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)
1027new 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)
181internal static GridLength DefaultWidth { get { return (new GridLength(0, GridUnitType.Auto)); } } 199if ((gridLength.GridUnitType == GridUnitType.Pixel || gridLength.GridUnitType == GridUnitType.Star) && 206if (gridLength.GridUnitType == GridUnitType.Pixel && (gridLength.Value > maxPixel)) 242new GridLength(0, GridUnitType.Auto),
System\Windows\GridLength.cs (13)
69: this(pixels, GridUnitType.Pixel) 90public GridLength(double value, GridUnitType type) 100if ( type != GridUnitType.Auto 101&& type != GridUnitType.Pixel 102&& type != GridUnitType.Star ) 107_unitValue = (type == GridUnitType.Auto) ? 0.0 : value; 188public bool IsAbsolute { get { return (_unitType == GridUnitType.Pixel); } } 194public bool IsAuto { get { return (_unitType == GridUnitType.Auto); } } 200public bool IsStar { get { return (_unitType == GridUnitType.Star); } } 205public double Value { get { return ((_unitType == GridUnitType.Auto) ? 1.0 : _unitValue); } } 210public GridUnitType GridUnitType { get { return (_unitType); } } 248private GridUnitType _unitType; // unit type storage 251private static readonly GridLength s_auto = new GridLength(1.0, GridUnitType.Auto);
System\Windows\GridLengthConverter.cs (7)
125GridUnitType type; 133type = GridUnitType.Auto; 137type = GridUnitType.Pixel; 183ConstructorInfo ci = typeof(GridLength).GetConstructor(new Type[] { typeof(double), typeof(GridUnitType) }); 211case (GridUnitType.Auto): 216case (GridUnitType.Star): 249GridUnitType unit;
System\Windows\Markup\XamlGridLengthSerializer.cs (12)
76GridUnitType gridUnitType; 91&& gridUnitType == GridUnitType.Pixel ) 147GridUnitType unitType; 153unitType = GridUnitType.Pixel; 158unitType = (GridUnitType)(unitAndFlags & 0x1F); 188out GridUnitType unit) 193unit = GridUnitType.Pixel; 206unit = (GridUnitType)i; 217unit = (GridUnitType)i; 241&& unit is GridUnitType.Auto or GridUnitType.Star) 248Debug.Assert( unit == GridUnitType.Pixel