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)
87colDef1.Width = new GridLength(lineWidth); 88colDef2.Width = new GridLength(headerWidth); 89colDef3.Width = new GridLength(1, GridUnitType.Star); 95rowDef1.Height = new GridLength(borderHeight / 2); 96rowDef2.Height = new GridLength(1, GridUnitType.Star);
System\Windows\Controls\ColumnDefinition.cs (1)
1017new GridLength(1.0, GridUnitType.Star),
System\Windows\Controls\DefinitionBase.cs (1)
836_userSize = new GridLength(1, GridUnitType.Auto);
System\Windows\Controls\GridSplitter.cs (5)
836SetDefinitionLength(definition, new GridLength(definition1Pixels, GridUnitType.Star)); 840SetDefinitionLength(definition, new GridLength(definition2Pixels, GridUnitType.Star )); 844SetDefinitionLength(definition, new GridLength(GetActualLength(definition), GridUnitType.Star)); 852SetDefinitionLength(_resizeData.Definition1, new GridLength(definition1Pixels)); 856SetDefinitionLength(_resizeData.Definition2, new GridLength(definition2Pixels));
System\Windows\Controls\RowDefinition.cs (1)
1017new GridLength(1.0, GridUnitType.Star),
System\Windows\Controls\ScrollViewer.cs (4)
2697gridColumn1.SetValue(ColumnDefinition.WidthProperty, new GridLength(1.0, GridUnitType.Star)); 2698gridColumn2.SetValue(ColumnDefinition.WidthProperty, new GridLength(1.0, GridUnitType.Auto)); 2699gridRow1.SetValue(RowDefinition.HeightProperty, new GridLength(1.0, GridUnitType.Star)); 2700gridRow2.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)
1678table.Columns[columnIndex].Width = new GridLength(columnWidths[columnIndex]);
System\Windows\GridLength.cs (1)
250private 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)
4908bamlType.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)
168return 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)
83internal GridLength UserWidth 164private GridLength _userWidth; // user specified width for the column
System\Windows\Controls\ColumnDefinition.cs (2)
932public GridLength Width 1014typeof(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)
775private static void SetDefinitionLength(DefinitionBase definition, GridLength length) 1013public GridLength OriginalDefinition1Length; 1014public GridLength OriginalDefinition2Length;
System\Windows\Controls\RowDefinition.cs (2)
932public GridLength Height 1014typeof(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 (11)
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) 156GridLength l = (GridLength)oCompare; 169public bool Equals(GridLength gridLength) 232public static GridLength Auto 250private 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)
4906typeof(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 });