22 references to Constraint
Microsoft.Maui.Controls (22)
ContentPresenter.cs (2)
76 bool isFixedHorizontally = (Constraint & LayoutConstraint.HorizontallyFixed) != 0; 77 bool isFixedVertically = (Constraint & LayoutConstraint.VerticallyFixed) != 0;
Label\Label.cs (2)
437 var constraint = label.Constraint; 465 var constraint = label.Constraint;
LegacyLayouts\AbsoluteLayout.cs (3)
120 view.ComputedConstraint = Constraint; 130 result = Constraint & LayoutConstraint.VerticallyFixed; 137 result = Constraint & LayoutConstraint.HorizontallyFixed;
LegacyLayouts\Grid.cs (2)
200 if ((Constraint & LayoutConstraint.VerticallyFixed) == 0 && height.IsStar) 227 if ((Constraint & LayoutConstraint.HorizontallyFixed) == 0 && width.IsStar)
LegacyLayouts\Layout.cs (1)
560 if ((trigger == InvalidationTrigger.MeasureChanged && view.Constraint == LayoutConstraint.Fixed) ||
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)
TemplatedView\TemplatedView.cs (2)
67 bool isFixedHorizontally = (Constraint & LayoutConstraint.HorizontallyFixed) != 0; 68 bool isFixedVertically = (Constraint & LayoutConstraint.VerticallyFixed) != 0;
VisualElement\VisualElement.cs (4)
934 LayoutConstraint oldConstraint = Constraint; 936 LayoutConstraint newConstraint = Constraint; 1027 LayoutConstraint oldConstraint = Constraint; 1029 LayoutConstraint newConstraint = Constraint;