/// <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);
        }
예제 #2
0
        /// <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);
        }
예제 #3
0
 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);
 }