/// <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);
        }
        /// <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);
 }
示例#4
0
 internal void AddConstraint(UIConstraint constraint)
 {
     AddConstraint(constraint.ControlEdge, constraint.Anchor, constraint.AnchorEdge, constraint.Distance, constraint.Category);
 }