Ejemplo n.º 1
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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 internal void AddConstraint(UIConstraint constraint)
 {
     AddConstraint(constraint.ControlEdge, constraint.Anchor, constraint.AnchorEdge, constraint.Distance, constraint.Category);
 }
Ejemplo n.º 4
0
 internal void AddConstraint(UIConstraint constraint)
 {
     AddConstraint(constraint.ControlEdge, constraint.Anchor, constraint.AnchorEdge, constraint.Distance, constraint.Category);
 }