29 instantiations of GridLength
PresentationFramework (25)
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (1)
2190_calculatedColumns[i].UserWidth = new GridLength(iP, GridUnitType.Star);
src\Framework\System\Windows\Controls\BorderGapMaskConverter.cs (5)
98colDef1.Width = new GridLength(lineWidth); 99colDef2.Width = new GridLength(headerWidth); 100colDef3.Width = new GridLength(1, GridUnitType.Star); 106rowDef1.Height = new GridLength(borderHeight / 2); 107rowDef2.Height = new GridLength(1, GridUnitType.Star);
src\Framework\System\Windows\Controls\DefinitionBase.cs (1)
842_userSize = new GridLength(1, GridUnitType.Auto);
src\Framework\System\Windows\Controls\GridSplitter.cs (5)
844SetDefinitionLength(definition, new GridLength(definition1Pixels, GridUnitType.Star)); 848SetDefinitionLength(definition, new GridLength(definition2Pixels, GridUnitType.Star )); 852SetDefinitionLength(definition, new GridLength(GetActualLength(definition), GridUnitType.Star)); 860SetDefinitionLength(_resizeData.Definition1, new GridLength(definition1Pixels)); 864SetDefinitionLength(_resizeData.Definition2, new GridLength(definition2Pixels));
src\Framework\System\Windows\Controls\ScrollViewer.cs (4)
2745gridColumn1.SetValue(ColumnDefinition.WidthProperty, new GridLength(1.0, GridUnitType.Star)); 2746gridColumn2.SetValue(ColumnDefinition.WidthProperty, new GridLength(1.0, GridUnitType.Auto)); 2747gridRow1.SetValue(RowDefinition.HeightProperty, new GridLength(1.0, GridUnitType.Star)); 2748gridRow2.SetValue(RowDefinition.HeightProperty, new GridLength(1.0, GridUnitType.Auto));
src\Framework\System\Windows\Documents\TableColumn.cs (2)
186internal static GridLength DefaultWidth { get { return (new GridLength(0, GridUnitType.Auto)); } } 247new GridLength(0, GridUnitType.Auto),
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (1)
1683table.Columns[columnIndex].Width = new GridLength(columnWidths[columnIndex]);
src\Framework\System\Windows\GridLength.cs (1)
255private static readonly GridLength s_auto = new GridLength(1.0, GridUnitType.Auto);
src\Framework\System\Windows\GridLengthConverter.cs (2)
144return new GridLength(value, type); 265return (new GridLength(value, unit));
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4906bamlType.DefaultConstructor = delegate() { return new System.Windows.GridLength(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1306case KnownElements.GridLength: o = new System.Windows.GridLength(); break;
src\Framework\System\Windows\Markup\XamlGridLengthSerializer.cs (1)
187return new GridLength(unitValue, unitType);
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\SharedPropertyValueColumnWidthContainer.cs (3)
35private GridLength _valueColumnWidth = new GridLength(0); 112this.ValueColumnWidth = new GridLength(value * this.ValueColumnPercentage); 143this.ValueColumnWidth = new GridLength(value * this.ContainerWidth);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
886this.designerViewGrid.RowDefinitions[2].Height = new GridLength(0);
45 references to GridLength
PresentationFramework (40)
src\Framework\MS\Internal\PtsTable\CalculatedColumn.cs (2)
92internal GridLength UserWidth 173private GridLength _userWidth; // user specified width for the column
src\Framework\System\Windows\Controls\DefinitionBase.cs (9)
172if (((GridLength) e.OldValue).GridUnitType != ((GridLength) e.NewValue).GridUnitType) 192return (((GridLength)value).Value >= 0); 301internal GridLength UserSize 433internal GridLength UserSizeValueCache 437return (GridLength) GetValue( 831internal GridLength UserSize 849GridLength currentGridLength = _registry[i].UserSizeValueCache; 934private GridLength _userSize; // shared state
src\Framework\System\Windows\Controls\GridSplitter.cs (3)
783private static void SetDefinitionLength(DefinitionBase definition, GridLength length) 1021public GridLength OriginalDefinition1Length; 1022public GridLength OriginalDefinition2Length;
src\Framework\System\Windows\Documents\TableColumn.cs (6)
73public GridLength Width 75get { return (GridLength) GetValue(WidthProperty); } 186internal static GridLength DefaultWidth { get { return (new GridLength(0, GridUnitType.Auto)); } } 203GridLength gridLength = (GridLength) value; 244typeof(GridLength),
src\Framework\System\Windows\GridLength.cs (11)
52public struct GridLength : IEquatable<GridLength> 132public static bool operator == (GridLength gl1, GridLength gl2) 145public static bool operator != (GridLength gl1, GridLength gl2) 159if(oCompare is GridLength) 161GridLength l = (GridLength)oCompare; 174public bool Equals(GridLength gridLength) 237public static GridLength Auto 255private static readonly GridLength s_auto = new GridLength(1.0, GridUnitType.Auto);
src\Framework\System\Windows\GridLengthConverter.cs (6)
184&& value is GridLength ) 186GridLength gl = (GridLength)value; 195ConstructorInfo ci = typeof(GridLength).GetConstructor(new Type[] { typeof(double), typeof(GridUnitType) }); 218static internal string ToString(GridLength gl, CultureInfo cultureInfo) 258static internal GridLength FromString(string s, CultureInfo cultureInfo)
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
347case 255: t = () => typeof(GridLength); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4904typeof(System.Windows.GridLength),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5799case KnownElements.GridLength: t = typeof(System.Windows.GridLength); break;
System.Activities.Presentation (5)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (2)
813if (gridLength != null && gridLength is GridLength) 815_sharedWidthContainer.ContainerWidth = arrangeBounds.Width - ((GridLength)gridLength).Value;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\SharedPropertyValueColumnWidthContainer.cs (2)
35private GridLength _valueColumnWidth = new GridLength(0); 55public GridLength ValueColumnWidth
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
75GridLength bottomPaneHeight;