Пример #1
0
 /// <summary>
 /// Sets the margin for the current view using a ConstraintMargin object.
 /// </summary>
 /// <returns>The margin.</returns>
 /// <param name="marginObject">Margin object.</param>
 public ConstraintHelper SetMargin(ConstraintMargin marginObject)
 {
     if (_currentItem == null)
     {
         throw new UnattachedViewException();
     }
     _currentItem.Margin = marginObject;
     return(this);
 }
Пример #2
0
 public ConstraintContainer(UIView view)
 {
     View   = view;
     Margin = new ConstraintMargin();
 }