/// <summary> /// Single-use constraint enforcement. /// </summary> public static void EnforceConstraint(this UIControl control, UIConstraint constraint) { var constrainer = new UIConstrainer(); constrainer.AddConstraint(constraint); EnforceConstraints(control, constrainer); }
internal void AddConstraint(UIConstraint constraint) { AddConstraint(constraint.ControlEdge, constraint.Anchor, constraint.AnchorEdge, constraint.Distance, constraint.Category); }