27 instantiations of GridLength
PresentationFramework (27)
MS\Internal\PtsHost\TableParaClient.cs (1)
2063_calculatedColumns[i].UserWidth = new GridLength(iP, GridUnitType.Star);
System\Windows\Controls\BorderGapMaskConverter.cs (5)
89colDef1.Width = new GridLength(lineWidth); 90colDef2.Width = new GridLength(headerWidth); 91colDef3.Width = new GridLength(1, GridUnitType.Star); 97rowDef1.Height = new GridLength(borderHeight / 2); 98rowDef2.Height = new GridLength(1, GridUnitType.Star);
System\Windows\Controls\ColumnDefinition.cs (1)
1015new GridLength(1.0, GridUnitType.Star),
System\Windows\Controls\DefinitionBase.cs (1)
836_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)
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 (2)
173internal static GridLength DefaultWidth { get { return (new GridLength(0, GridUnitType.Auto)); } } 234new GridLength(0, GridUnitType.Auto),
System\Windows\Documents\TextRangeEditTables.cs (1)
1682table.Columns[columnIndex].Width = new GridLength(columnWidths[columnIndex]);
System\Windows\GridLength.cs (1)
249private static readonly GridLength s_auto = new GridLength(1.0, GridUnitType.Auto);
System\Windows\GridLengthConverter.cs (2)
135return new GridLength(value, type); 248return (new GridLength(value, unit));
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5339DefaultConstructor = delegate () { return new System.Windows.GridLength(); },
System\Windows\Markup\KnownTypes.cs (1)
1299case KnownElements.GridLength: o = new System.Windows.GridLength(); break;
System\Windows\Markup\XamlGridLengthSerializer.cs (1)
168return new GridLength(unitValue, unitType);
45 references to GridLength
Microsoft.VisualStudio.LanguageServices (1)
PreviewPane\PreviewPane.xaml.cs (1)
187grid.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
PresentationFramework (42)
MS\Internal\PtsTable\CalculatedColumn.cs (2)
83internal GridLength UserWidth 164private GridLength _userWidth; // user specified width for the column
System\Windows\Controls\ColumnDefinition.cs (2)
930public GridLength Width 1012typeof(GridLength),
System\Windows\Controls\DefinitionBase.cs (9)
158if (((GridLength) e.OldValue).GridUnitType != ((GridLength) e.NewValue).GridUnitType) 178return (((GridLength)value).Value >= 0); 287internal GridLength UserSize 427internal GridLength UserSizeValueCache 431return (GridLength) GetValue( 825internal GridLength UserSize 843GridLength currentGridLength = _registry[i].UserSizeValueCache; 962private 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)
925public GridLength Height 1007typeof(GridLength),
System\Windows\Documents\TableColumn.cs (6)
60public GridLength Width 62get { return (GridLength) GetValue(WidthProperty); } 173internal static GridLength DefaultWidth { get { return (new GridLength(0, GridUnitType.Auto)); } } 190GridLength gridLength = (GridLength) value; 231typeof(GridLength),
System\Windows\GridLength.cs (9)
47public struct GridLength : IEquatable<GridLength> 127public static bool operator == (GridLength gl1, GridLength gl2) 140public static bool operator != (GridLength gl1, GridLength gl2) 154if (oCompare is GridLength l) 168public bool Equals(GridLength gridLength) 231public static GridLength Auto 249private static readonly GridLength s_auto = new GridLength(1.0, GridUnitType.Auto);
System\Windows\GridLengthConverter.cs (6)
167&& value is GridLength ) 169GridLength gl = (GridLength)value; 178ConstructorInfo ci = typeof(GridLength).GetConstructor(new Type[] { typeof(double), typeof(GridUnitType) }); 201static internal string ToString(GridLength gl, CultureInfo cultureInfo) 241static internal GridLength FromString(string s, CultureInfo cultureInfo)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
349case 255: t = () => typeof(GridLength); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5336typeof(System.Windows.GridLength),
System\Windows\Markup\KnownTypes.cs (1)
5803case 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 });