34 references to GridUnitType
Microsoft.Maui (14)
Layouts\GridLayoutManager.cs (4)
1186
static GridLengthType ToGridLengthType(
GridUnitType
gridUnitType)
1190
GridUnitType
.Absolute => GridLengthType.Absolute,
1191
GridUnitType
.Star => GridLengthType.Star,
1192
GridUnitType
.Auto => GridLengthType.Auto,
Primitives\GridLength.cs (10)
15
public static readonly GridLength Auto = new GridLength(1,
GridUnitType
.Auto);
18
public static readonly GridLength Star = new GridLength(1,
GridUnitType
.Star);
24
public readonly
GridUnitType
GridUnitType { get; }
29
get { return GridUnitType ==
GridUnitType
.Absolute; }
35
get { return GridUnitType ==
GridUnitType
.Auto; }
41
get { return GridUnitType ==
GridUnitType
.Star; }
45
public GridLength(double value) : this(value,
GridUnitType
.Absolute)
50
public GridLength(double value,
GridUnitType
type)
54
if ((int)type < (int)
GridUnitType
.Absolute || (int)type > (int)
GridUnitType
.Auto)
Microsoft.Maui.Controls (3)
GridLengthTypeConverter.cs (2)
29
return new GridLength(1,
GridUnitType
.Star);
31
return new GridLength(length,
GridUnitType
.Star);
Internals\ProfilePage.cs (1)
123
new RowDefinition { Height = new GridLength(1,
GridUnitType
.Star) },
Microsoft.Maui.Controls.Build.Tasks (1)
CompiledConverters\GridLengthTypeConverter.cs (1)
35
yield return Create(Ldc_I4, (int)
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);