29 references to Alignment
Microsoft.Maui.Controls (29)
ContentPresenter.cs (2)
80
if (isFixedVertically && view.VerticalOptions.
Alignment
== LayoutAlignment.Fill)
82
if (isFixedHorizontally && view.HorizontalOptions.
Alignment
== LayoutAlignment.Fill)
LayoutOptions.cs (1)
62
switch (
Alignment
)
LayoutOptionsConverter.cs (4)
64
if (options.
Alignment
== LayoutAlignment.Start)
66
if (options.
Alignment
== LayoutAlignment.Center)
68
if (options.
Alignment
== LayoutAlignment.End)
70
if (options.
Alignment
== LayoutAlignment.Fill)
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 (8)
244
if (horizontalOptions.
Alignment
!= LayoutAlignment.Fill)
250
double horizontalAlign = horizontalOptions.
Alignment
.ToDouble();
261
if (verticalOptions.
Alignment
!= LayoutAlignment.Fill)
267
region.Y += (int)(diff * verticalOptions.
Alignment
.ToDouble());
508
if (horizontalOptions.
Alignment
!= LayoutAlignment.Fill)
514
double horizontalAlign = horizontalOptions.
Alignment
.ToDouble();
525
if (verticalOptions.
Alignment
!= LayoutAlignment.Fill)
531
region.Y += (int)(diff * verticalOptions.
Alignment
.ToDouble());
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)