47 references to LayoutAlignment
Microsoft.Maui.Controls (47)
ContentPresenter.cs (2)
80
if (isFixedVertically && view.VerticalOptions.Alignment ==
LayoutAlignment
.Fill)
82
if (isFixedHorizontally && view.HorizontalOptions.Alignment ==
LayoutAlignment
.Fill)
LayoutAlignmentExtensions.cs (4)
7
public static double ToDouble(this
LayoutAlignment
align)
11
case
LayoutAlignment
.Start:
13
case
LayoutAlignment
.Center:
15
case
LayoutAlignment
.End:
LayoutOptions.cs (15)
13
public static readonly LayoutOptions Start = new LayoutOptions(
LayoutAlignment
.Start, false);
15
public static readonly LayoutOptions Center = new LayoutOptions(
LayoutAlignment
.Center, false);
17
public static readonly LayoutOptions End = new LayoutOptions(
LayoutAlignment
.End, false);
19
public static readonly LayoutOptions Fill = new LayoutOptions(
LayoutAlignment
.Fill, false);
23
public static readonly LayoutOptions StartAndExpand = new LayoutOptions(
LayoutAlignment
.Start, true);
27
public static readonly LayoutOptions CenterAndExpand = new LayoutOptions(
LayoutAlignment
.Center, true);
31
public static readonly LayoutOptions EndAndExpand = new LayoutOptions(
LayoutAlignment
.End, true);
35
public static readonly LayoutOptions FillAndExpand = new LayoutOptions(
LayoutAlignment
.Fill, true);
38
public LayoutOptions(
LayoutAlignment
alignment, bool expands)
47
public
LayoutAlignment
Alignment
49
get { return (
LayoutAlignment
)(_flags & 3); }
64
case
LayoutAlignment
.Start:
66
case
LayoutAlignment
.Center:
68
case
LayoutAlignment
.End:
70
case
LayoutAlignment
.Fill:
LayoutOptionsConverter.cs (8)
64
if (options.Alignment ==
LayoutAlignment
.Start)
65
return $"{nameof(
LayoutAlignment
.Start)}{(options.Expands ? "AndExpand" : "")}";
66
if (options.Alignment ==
LayoutAlignment
.Center)
67
return $"{nameof(
LayoutAlignment
.Center)}{(options.Expands ? "AndExpand" : "")}";
68
if (options.Alignment ==
LayoutAlignment
.End)
69
return $"{nameof(
LayoutAlignment
.End)}{(options.Expands ? "AndExpand" : "")}";
70
if (options.Alignment ==
LayoutAlignment
.Fill)
71
return $"{nameof(
LayoutAlignment
.Fill)}{(options.Expands ? "AndExpand" : "")}";
LegacyLayouts\AbsoluteLayout.cs (2)
118
if (view.VerticalOptions.Alignment ==
LayoutAlignment
.Fill &&
119
view.HorizontalOptions.Alignment ==
LayoutAlignment
.Fill)
LegacyLayouts\Grid.cs (2)
184
if (vOptions.Alignment ==
LayoutAlignment
.Fill)
211
if (hOptions.Alignment ==
LayoutAlignment
.Fill)
LegacyLayouts\Layout.cs (4)
244
if (horizontalOptions.Alignment !=
LayoutAlignment
.Fill)
261
if (verticalOptions.Alignment !=
LayoutAlignment
.Fill)
508
if (horizontalOptions.Alignment !=
LayoutAlignment
.Fill)
525
if (verticalOptions.Alignment !=
LayoutAlignment
.Fill)
LegacyLayouts\StackLayout.cs (4)
363
if ((Constraint & LayoutConstraint.VerticallyFixed) != 0 && view.VerticalOptions.Alignment ==
LayoutAlignment
.Fill)
365
if (isOnlyExpander && view.HorizontalOptions.Alignment ==
LayoutAlignment
.Fill && Constraint == LayoutConstraint.Fixed)
381
if ((Constraint & LayoutConstraint.HorizontallyFixed) != 0 && view.HorizontalOptions.Alignment ==
LayoutAlignment
.Fill)
383
if (isOnlyExpander && view.VerticalOptions.Alignment ==
LayoutAlignment
.Fill && Constraint == LayoutConstraint.Fixed)
ScrollView\ScrollView.cs (2)
328
if (vOptions.Alignment ==
LayoutAlignment
.Fill && (Constraint & LayoutConstraint.VerticallyFixed) != 0)
335
if (hOptions.Alignment ==
LayoutAlignment
.Fill && (Constraint & LayoutConstraint.HorizontallyFixed) != 0)
TemplatedPage.cs (2)
32
if (vOptions.Alignment ==
LayoutAlignment
.Fill)
34
if (hOptions.Alignment ==
LayoutAlignment
.Fill)
TemplatedView\TemplatedView.cs (2)
71
if (isFixedVertically && view.VerticalOptions.Alignment ==
LayoutAlignment
.Fill)
73
if (isFixedHorizontally && view.HorizontalOptions.Alignment ==
LayoutAlignment
.Fill)