27 instantiations of GridLength
PresentationFramework (27)
MS\Internal\PtsHost\TableParaClient.cs (1)
2069_calculatedColumns[i].UserWidth = new GridLength(iP, GridUnitType.Star);
System\Windows\Controls\BorderGapMaskConverter.cs (5)
88colDef1.Width = new GridLength(lineWidth); 89colDef2.Width = new GridLength(headerWidth); 90colDef3.Width = new GridLength(1, GridUnitType.Star); 96rowDef1.Height = new GridLength(borderHeight / 2); 97rowDef2.Height = new GridLength(1, GridUnitType.Star);
System\Windows\Controls\ColumnDefinition.cs (1)
1027new GridLength(1.0, GridUnitType.Star),
System\Windows\Controls\DefinitionBase.cs (1)
843_userSize = new GridLength(1, GridUnitType.Auto);
System\Windows\Controls\GridSplitter.cs (5)
842SetDefinitionLength(definition, new GridLength(definition1Pixels, GridUnitType.Star)); 846SetDefinitionLength(definition, new GridLength(definition2Pixels, GridUnitType.Star )); 850SetDefinitionLength(definition, new GridLength(GetActualLength(definition), GridUnitType.Star)); 858SetDefinitionLength(_resizeData.Definition1, new GridLength(definition1Pixels)); 862SetDefinitionLength(_resizeData.Definition2, new GridLength(definition2Pixels));
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 (2)
181internal static GridLength DefaultWidth { get { return (new GridLength(0, GridUnitType.Auto)); } } 242new GridLength(0, GridUnitType.Auto),
System\Windows\Documents\TextRangeEditTables.cs (1)
1680table.Columns[columnIndex].Width = new GridLength(columnWidths[columnIndex]);
System\Windows\GridLength.cs (1)
251private static readonly GridLength s_auto = new GridLength(1.0, GridUnitType.Auto);
System\Windows\GridLengthConverter.cs (2)
140return new GridLength(value, type); 253return (new GridLength(value, unit));
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4910bamlType.DefaultConstructor = delegate() { return new System.Windows.GridLength(); };
System\Windows\Markup\KnownTypes.cs (1)
1305case KnownElements.GridLength: o = new System.Windows.GridLength(); break;
System\Windows\Markup\XamlGridLengthSerializer.cs (1)
178return new GridLength(unitValue, unitType);
47 references to GridLength
Microsoft.VisualStudio.LanguageServices (1)
PreviewPane\PreviewPane.xaml.cs (1)
187grid.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
PresentationFramework (44)
MS\Internal\PtsTable\CalculatedColumn.cs (2)
88internal GridLength UserWidth 169private GridLength _userWidth; // user specified width for the column
System\Windows\Controls\ColumnDefinition.cs (2)
942public GridLength Width 1024typeof(GridLength),
System\Windows\Controls\DefinitionBase.cs (9)
165if (((GridLength) e.OldValue).GridUnitType != ((GridLength) e.NewValue).GridUnitType) 185return (((GridLength)value).Value >= 0); 294internal GridLength UserSize 434internal GridLength UserSizeValueCache 438return (GridLength) GetValue( 832internal GridLength UserSize 850GridLength currentGridLength = _registry[i].UserSizeValueCache; 969private GridLength _userSize; // shared state
System\Windows\Controls\GridSplitter.cs (3)
781private static void SetDefinitionLength(DefinitionBase definition, GridLength length) 1019public GridLength OriginalDefinition1Length; 1020public GridLength OriginalDefinition2Length;
System\Windows\Controls\RowDefinition.cs (2)
942public GridLength Height 1024typeof(GridLength),
System\Windows\Documents\TableColumn.cs (6)
68public GridLength Width 70get { return (GridLength) GetValue(WidthProperty); } 181internal static GridLength DefaultWidth { get { return (new GridLength(0, GridUnitType.Auto)); } } 198GridLength gridLength = (GridLength) value; 239typeof(GridLength),
System\Windows\GridLength.cs (11)
48public struct GridLength : IEquatable<GridLength> 128public static bool operator == (GridLength gl1, GridLength gl2) 141public static bool operator != (GridLength gl1, GridLength gl2) 155if(oCompare is GridLength) 157GridLength l = (GridLength)oCompare; 170public bool Equals(GridLength gridLength) 233public static GridLength Auto 251private static readonly GridLength s_auto = new GridLength(1.0, GridUnitType.Auto);
System\Windows\GridLengthConverter.cs (6)
172&& value is GridLength ) 174GridLength gl = (GridLength)value; 183ConstructorInfo ci = typeof(GridLength).GetConstructor(new Type[] { typeof(double), typeof(GridUnitType) }); 206static internal string ToString(GridLength gl, CultureInfo cultureInfo) 246static internal GridLength FromString(string s, CultureInfo cultureInfo)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
351case 255: t = () => typeof(GridLength); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4908typeof(System.Windows.GridLength),
System\Windows\Markup\KnownTypes.cs (1)
5809case KnownElements.GridLength: t = typeof(System.Windows.GridLength); break;
Roslyn.VisualStudio.DiagnosticsWindow (2)
PerfMargin\PerfMarginPanel.cs (2)
39_mainGrid.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto }); 40_mainGrid.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });