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)
437 var constraint = label.Constraint; 438 var isVerticallySizeable = (constraint & LayoutConstraint.VerticallyFixed) == 0; 439 var isHorizontallySizeable = (constraint & LayoutConstraint.HorizontallyFixed) == 0; 465 var constraint = label.Constraint; 467 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)
328 if (vOptions.Alignment == LayoutAlignment.Fill && (Constraint & LayoutConstraint.VerticallyFixed) != 0) 330 view.ComputedConstraint = LayoutConstraint.VerticallyFixed; 335 if (hOptions.Alignment == LayoutAlignment.Fill && (Constraint & LayoutConstraint.HorizontallyFixed) != 0) 337 view.ComputedConstraint = LayoutConstraint.HorizontallyFixed; 341 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)
500 LayoutConstraint _computedConstraint; 516 LayoutConstraint _selfConstraint; 926 internal LayoutConstraint ComputedConstraint 934 LayoutConstraint oldConstraint = Constraint; 936 LayoutConstraint newConstraint = Constraint; 942 internal LayoutConstraint Constraint => ComputedConstraint | SelfConstraint; 1019 internal LayoutConstraint SelfConstraint 1027 LayoutConstraint oldConstraint = Constraint; 1029 LayoutConstraint newConstraint = Constraint; 1292 view.ComputedConstraint = LayoutConstraint.None; 1350 internal virtual void ComputeConstraintForView(View view) => view.ComputedConstraint = LayoutConstraint.None; 1485 internal virtual void OnConstraintChanged(LayoutConstraint oldConstraint, LayoutConstraint newConstraint) => ComputeConstrainsForChildren(); 1691 var constraint = LayoutConstraint.None; 1695 constraint |= LayoutConstraint.HorizontallyFixed; 1699 constraint |= LayoutConstraint.VerticallyFixed;