partial void ChangeViewPressed(Foundation.NSObject sender) { var button = sender as UIButton; button.Selected = !button.Selected; var animation = POPSpringAnimation.AnimationWithPropertyNamed(POPAnimation.LayoutConstraintConstant); animation.ToValue = new NSNumber(button.Selected ? (ContainerViewWidthConstraint.Constant + 16) * -1 : 0); ContainerViewConstraint.AddAnimation(animation, "constraint"); }
void ReleaseDesignerOutlets() { if (ContainerViewWidthConstraint != null) { ContainerViewWidthConstraint.Dispose(); ContainerViewWidthConstraint = null; } if (ContainerViewConstraint != null) { ContainerViewConstraint.Dispose(); ContainerViewConstraint = null; } }