23 instantiations of GridLength
Microsoft.Maui (3)
Primitives\GridLength.cs (3)
15 public static readonly GridLength Auto = new GridLength(1, GridUnitType.Auto); 18 public static readonly GridLength Star = new GridLength(1, GridUnitType.Star); 80 return new GridLength(absoluteValue);
Microsoft.Maui.Controls (4)
GridLengthTypeConverter.cs (3)
29 return new GridLength(1, GridUnitType.Star); 31 return new GridLength(length, GridUnitType.Star); 33 return new GridLength(length);
Internals\ProfilePage.cs (1)
123 new RowDefinition { Height = new GridLength(1, GridUnitType.Star) },
Microsoft.Maui.Controls.Foldable (16)
TwoPaneView.cs (16)
470 columnMiddle.Width = new GridLength(hinge.Width, GridUnitType.Absolute); 471 columnLeft.Width = new GridLength(pane1.Width, GridUnitType.Absolute); 472 columnRight.Width = new GridLength(pane2.Width, GridUnitType.Absolute); 474 rowMiddle.Height = new GridLength(0, GridUnitType.Absolute); 476 rowBottom.Height = new GridLength(0, GridUnitType.Absolute); 480 rowMiddle.Height = new GridLength(hinge.Height, GridUnitType.Absolute); 481 rowTop.Height = new GridLength(pane1.Height, GridUnitType.Absolute); 482 rowBottom.Height = new GridLength(pane2.Height, GridUnitType.Absolute); 484 columnMiddle.Width = new GridLength(0, GridUnitType.Absolute); 486 columnRight.Width = new GridLength(0, GridUnitType.Absolute); 491 columnMiddle.Width = new GridLength(0, GridUnitType.Absolute); 492 rowMiddle.Height = new GridLength(0, GridUnitType.Absolute); 501 columnLeft.Width = new GridLength(1, GridUnitType.Star); 502 columnRight.Width = new GridLength(0, GridUnitType.Absolute); 512 rowTop.Height = new GridLength(1, GridUnitType.Star); 513 rowBottom.Height = new GridLength(0, GridUnitType.Absolute);
66 references to GridLength
Microsoft.Maui (17)
Core\IGridColumnDefinition.cs (1)
11 GridLength Width { get; }
Core\IGridRowDefinition.cs (1)
11 GridLength Height { get; }
Layouts\GridLayoutManager.cs (4)
151 new Definition(GridLength.Star) 1199 readonly GridLength _gridLength; 1237 public GridLength GridLength => _gridLength; 1239 public Definition(GridLength gridLength)
Primitives\GridLength.cs (11)
15 public static readonly GridLength Auto = new GridLength(1, GridUnitType.Auto); 18 public static readonly GridLength Star = new GridLength(1, GridUnitType.Star); 64 return obj is GridLength && Equals((GridLength)obj); 67 bool Equals(GridLength other) 78 public static implicit operator GridLength(double absoluteValue) 89 public static bool operator ==(GridLength left, GridLength right) => left.Equals(right); 91 public static bool operator !=(GridLength left, GridLength right) => !(left == right); 101 double d => (GridLength)d,
Microsoft.Maui.Controls (36)
ColumnDefinition.cs (5)
10 public static readonly BindableProperty WidthProperty = BindableProperty.Create(nameof(Width), typeof(GridLength), typeof(ColumnDefinition), GridLength.Star, 18 public ColumnDefinition(GridLength width) 23 public GridLength Width 25 get { return (GridLength)GetValue(WidthProperty); }
ColumnDefinitionCollectionTypeConverter.cs (1)
30 definitions[i] = new ColumnDefinition { Width = (GridLength)converter.ConvertFromInvariantString(lengths[i]) };
GridLengthTypeConverter.cs (2)
27 return GridLength.Auto; 40 if (value is not GridLength length)
Internals\ProfilePage.cs (2)
124 new RowDefinition { Height = GridLength.Auto }, 127 new ColumnDefinition { Width = GridLength.Star },
Layout\AndExpandLayoutManager.cs (6)
55 ColumnDefinitions = new ColumnDefinitionCollection { new ColumnDefinition { Width = GridLength.Star } }, 72 grid.RowDefinitions.Add(new RowDefinition { Height = GridLength.Star }); 76 grid.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto }); 92 RowDefinitions = new RowDefinitionCollection { new RowDefinition { Height = GridLength.Star } }, 109 grid.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Star }); 113 grid.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Auto });
LegacyLayouts\Grid.cs (2)
194 GridLength height = rowDefinitions[i].Height; 221 GridLength width = columnDefinitions[i].Width;
RadioButton\RadioButton.cs (3)
470 new ColumnDefinition { Width = GridLength.Auto }, 471 new ColumnDefinition { Width = GridLength.Star } 474 new RowDefinition { Height = GridLength.Auto }
RowDefinition.cs (5)
10 public static readonly BindableProperty HeightProperty = BindableProperty.Create(nameof(Height), typeof(GridLength), typeof(RowDefinition), GridLength.Star, 18 public RowDefinition(GridLength height) 25 public GridLength Height 27 get { return (GridLength)GetValue(HeightProperty); }
RowDefinitionCollectionTypeConverter.cs (1)
30 definitions[i] = new RowDefinition { Height = (GridLength)converter.ConvertFromInvariantString(lengths[i]) };
Shell\BaseShellItem.cs (3)
431 columnDefinitions.Add(new ColumnDefinition { Width = GridLength.Auto }); 433 columnDefinitions.Add(new ColumnDefinition { Width = GridLength.Auto }); 435 columnDefinitions.Add(new ColumnDefinition { Width = GridLength.Star });
TitleBar\TitleBar.cs (6)
343 new ColumnDefinition(GridLength.Auto), // Leading content 344 new ColumnDefinition(GridLength.Auto), // Icon content 345 new ColumnDefinition(GridLength.Auto), // Title content 346 new ColumnDefinition(GridLength.Auto), // Subtitle content 347 new ColumnDefinition(GridLength.Star), // Content 348 new ColumnDefinition(GridLength.Auto), // Trailing content
Microsoft.Maui.Controls.Build.Tasks (3)
CompiledConverters\GridLengthTypeConverter.cs (3)
24 yield return Create(Ldsfld, module.ImportFieldReference(context.Cache, ("Microsoft.Maui", "Microsoft.Maui", "GridLength"), nameof(GridLength.Auto), isStatic: true)); 29 yield return Create(Ldsfld, module.ImportFieldReference(context.Cache, ("Microsoft.Maui", "Microsoft.Maui", "GridLength"), nameof(GridLength.Star), isStatic: true)); 52 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(GridLength));
Microsoft.Maui.Controls.Foldable (10)
TwoPaneView.cs (10)
86 = BindableProperty.Create("Pane1Length", typeof(GridLength), typeof(TwoPaneView), defaultValue: GridLength.Star, propertyChanged: TwoPaneViewLayoutPropertyChanged); 90 = BindableProperty.Create("Pane2Length", typeof(GridLength), typeof(TwoPaneView), defaultValue: GridLength.Star, propertyChanged: TwoPaneViewLayoutPropertyChanged); 156 public GridLength Pane1Length 158 get { return (GridLength)GetValue(Pane1LengthProperty); } 166 public GridLength Pane2Length 168 get { return (GridLength)GetValue(Pane2LengthProperty); } 475 rowTop.Height = GridLength.Star; 485 columnLeft.Width = GridLength.Star;