72 references to LayoutConstraint
Microsoft.Maui.Controls (72)
Cells\ViewCell.cs (2)
27
_view.ComputedConstraint =
LayoutConstraint
.None;
34
_view.ComputedConstraint =
LayoutConstraint
.Fixed;
ContentPresenter.cs (6)
76
bool isFixedHorizontally = (Constraint &
LayoutConstraint
.HorizontallyFixed) != 0;
77
bool isFixedVertically = (Constraint &
LayoutConstraint
.VerticallyFixed) != 0;
79
var
result =
LayoutConstraint
.None;
81
result |=
LayoutConstraint
.VerticallyFixed;
83
result |=
LayoutConstraint
.HorizontallyFixed;
Label\Label.cs (5)
439
var
constraint = label.Constraint;
440
var isVerticallySizeable = (constraint &
LayoutConstraint
.VerticallyFixed) == 0;
441
var isHorizontallySizeable = (constraint &
LayoutConstraint
.HorizontallyFixed) == 0;
467
var
constraint = label.Constraint;
469
var isHorizontallySizeable = (constraint &
LayoutConstraint
.HorizontallyFixed) == 0;
LegacyLayouts\AbsoluteLayout.cs (8)
125
var
result =
LayoutConstraint
.None;
130
result = Constraint &
LayoutConstraint
.VerticallyFixed;
132
result |=
LayoutConstraint
.HorizontallyFixed;
137
result = Constraint &
LayoutConstraint
.HorizontallyFixed;
139
result |=
LayoutConstraint
.VerticallyFixed;
144
result |=
LayoutConstraint
.HorizontallyFixed;
146
result |=
LayoutConstraint
.VerticallyFixed;
LegacyLayouts\Grid.cs (6)
179
var
result =
LayoutConstraint
.None;
200
if ((Constraint &
LayoutConstraint
.VerticallyFixed) == 0 && height.IsStar)
208
result |=
LayoutConstraint
.VerticallyFixed;
227
if ((Constraint &
LayoutConstraint
.HorizontallyFixed) == 0 && width.IsStar)
235
result |=
LayoutConstraint
.HorizontallyFixed;
LegacyLayouts\Layout.cs (2)
560
if ((trigger == InvalidationTrigger.MeasureChanged && view.Constraint ==
LayoutConstraint
.Fixed) ||
561
(trigger == InvalidationTrigger.SizeRequestChanged && view.ComputedConstraint ==
LayoutConstraint
.Fixed))
LegacyLayouts\StackLayout.cs (10)
363
if ((Constraint &
LayoutConstraint
.VerticallyFixed) != 0 && view.VerticalOptions.Alignment == LayoutAlignment.Fill)
365
if (isOnlyExpander && view.HorizontalOptions.Alignment == LayoutAlignment.Fill && Constraint ==
LayoutConstraint
.Fixed)
367
view.ComputedConstraint =
LayoutConstraint
.Fixed;
371
view.ComputedConstraint =
LayoutConstraint
.VerticallyFixed;
376
view.ComputedConstraint =
LayoutConstraint
.None;
381
if ((Constraint &
LayoutConstraint
.HorizontallyFixed) != 0 && view.HorizontalOptions.Alignment == LayoutAlignment.Fill)
383
if (isOnlyExpander && view.VerticalOptions.Alignment == LayoutAlignment.Fill && Constraint ==
LayoutConstraint
.Fixed)
385
view.ComputedConstraint =
LayoutConstraint
.Fixed;
389
view.ComputedConstraint =
LayoutConstraint
.HorizontallyFixed;
394
view.ComputedConstraint =
LayoutConstraint
.None;
ListView\ListView.cs (1)
449
viewCell.View.ComputedConstraint =
LayoutConstraint
.None;
ScrollView\ScrollView.cs (5)
330
if (vOptions.Alignment == LayoutAlignment.Fill && (Constraint &
LayoutConstraint
.VerticallyFixed) != 0)
332
view.ComputedConstraint =
LayoutConstraint
.VerticallyFixed;
337
if (hOptions.Alignment == LayoutAlignment.Fill && (Constraint &
LayoutConstraint
.HorizontallyFixed) != 0)
339
view.ComputedConstraint =
LayoutConstraint
.HorizontallyFixed;
343
view.ComputedConstraint =
LayoutConstraint
.None;
TemplatedPage.cs (4)
31
var
result =
LayoutConstraint
.None;
33
result |=
LayoutConstraint
.VerticallyFixed;
35
result |=
LayoutConstraint
.HorizontallyFixed;
TemplatedView\TemplatedView.cs (6)
67
bool isFixedHorizontally = (Constraint &
LayoutConstraint
.HorizontallyFixed) != 0;
68
bool isFixedVertically = (Constraint &
LayoutConstraint
.VerticallyFixed) != 0;
70
var
result =
LayoutConstraint
.None;
72
result |=
LayoutConstraint
.VerticallyFixed;
74
result |=
LayoutConstraint
.HorizontallyFixed;
VisualElement\VisualElement.cs (17)
503
LayoutConstraint
_computedConstraint;
519
LayoutConstraint
_selfConstraint;
929
internal
LayoutConstraint
ComputedConstraint
937
LayoutConstraint
oldConstraint = Constraint;
939
LayoutConstraint
newConstraint = Constraint;
945
internal
LayoutConstraint
Constraint => ComputedConstraint | SelfConstraint;
1022
internal
LayoutConstraint
SelfConstraint
1030
LayoutConstraint
oldConstraint = Constraint;
1032
LayoutConstraint
newConstraint = Constraint;
1295
view.ComputedConstraint =
LayoutConstraint
.None;
1353
internal virtual void ComputeConstraintForView(View view) => view.ComputedConstraint =
LayoutConstraint
.None;
1488
internal virtual void OnConstraintChanged(
LayoutConstraint
oldConstraint,
LayoutConstraint
newConstraint) => ComputeConstrainsForChildren();
1694
var
constraint =
LayoutConstraint
.None;
1698
constraint |=
LayoutConstraint
.HorizontallyFixed;
1702
constraint |=
LayoutConstraint
.VerticallyFixed;