void ReleaseDesignerOutlets() { if (BoyButton != null) { BoyButton.Dispose(); BoyButton = null; } if (BubbleImg != null) { BubbleImg.Dispose(); BubbleImg = null; } if (BubbleImgTopOffset != null) { BubbleImgTopOffset.Dispose(); BubbleImgTopOffset = null; } if (ContinueBtn != null) { ContinueBtn.Dispose(); ContinueBtn = null; } if (GirlButton != null) { GirlButton.Dispose(); GirlButton = null; } if (Input != null) { Input.Dispose(); Input = null; } if (NavBarBlendView != null) { NavBarBlendView.Dispose(); NavBarBlendView = null; } if (NavBarBlendViewHeightConstraint != null) { NavBarBlendViewHeightConstraint.Dispose(); NavBarBlendViewHeightConstraint = null; } if (NickName != null) { NickName.Dispose(); NickName = null; } if (SwitchSignUpType != null) { SwitchSignUpType.Dispose(); SwitchSignUpType = null; } if (ThemeSelectorContainerView != null) { ThemeSelectorContainerView.Dispose(); ThemeSelectorContainerView = null; } }
void GoToNormalLayout() { if (compactConstraints == null) { return; } View.RemoveConstraints(compactConstraints); compactConstraints = null; NavBarBlendView.AddConstraint(NavBarBlendViewHeightConstraint); View.SetNeedsUpdateConstraints(); View.LayoutIfNeeded(); }
void GoToCompactLayout(nfloat bottomOffset) { // Compress NavBarBlendView and use that space to show controls NavBarBlendView.RemoveConstraint(NavBarBlendViewHeightConstraint); compactConstraints = NSLayoutConstraint.FromVisualFormat("V:[btn]-(offset)-|", NSLayoutFormatOptions.DirectionRightToLeft, "btn", ContinueBtn, "offset", (float)bottomOffset ); View.AddConstraints(compactConstraints); View.SetNeedsUpdateConstraints(); View.LayoutIfNeeded(); }