private void SetupLayoutConstraints() { AutoLayoutToolBox.AlignToFullConstraints(_scrollView, View); AutoLayoutToolBox.AlignLeftAnchorToLeftOf(_titleLabel, _scrollView); AutoLayoutToolBox.AlignRightAnchorToRightOf(_titleLabel, _scrollView); _titleLabel.TopAnchor.ConstraintEqualTo(_scrollView.TopAnchor, 600).Active = true; AutoLayoutToolBox.AlignLeftAnchorToLeftOf(_imageView, View); AutoLayoutToolBox.AlignRightAnchorToRightOf(_imageView, View); AutoLayoutToolBox.AlignTopToBottomOf(_imageView, _titleLabel); AutoLayoutToolBox.AlignLeftAnchorToLeftOf(_valueLabel, View); AutoLayoutToolBox.AlignRightAnchorToRightOf(_valueLabel, View); _valueLabel.BottomAnchor.ConstraintEqualTo(_changePlainViewAlphaSlider.TopAnchor).Active = true; _changeBlurViewAlphaSlider.TranslatesAutoresizingMaskIntoConstraints = false; _changeBlurViewAlphaSlider.LeftAnchor.ConstraintEqualTo(View.LeftAnchor, 24).Active = true; _changeBlurViewAlphaSlider.RightAnchor.ConstraintEqualTo(View.RightAnchor, -24).Active = true; _changeBlurViewAlphaSlider.BottomAnchor.ConstraintEqualTo(_changePlainViewAlphaSlider.TopAnchor, -24).Active = true; _changeBlurViewAlphaSlider.HeightAnchor.ConstraintEqualTo(100).Active = true; _changeBlurViewAlphaSlider.LeftAnchor.ConstraintEqualTo(View.LeftAnchor, 24).Active = true; _changePlainViewAlphaSlider.TranslatesAutoresizingMaskIntoConstraints = false; _changePlainViewAlphaSlider.LeftAnchor.ConstraintEqualTo(View.LeftAnchor, 24).Active = true; _changePlainViewAlphaSlider.RightAnchor.ConstraintEqualTo(View.RightAnchor, -24).Active = true; _changePlainViewAlphaSlider.BottomAnchor.ConstraintEqualTo(View.BottomAnchor, -24).Active = true; _changePlainViewAlphaSlider.HeightAnchor.ConstraintEqualTo(100).Active = true; }
private void SetupLayoutConstraints() { AutoLayoutToolBox.AlignToFullConstraints(_scrollView, View); AutoLayoutToolBox.AlignTopAnchorTopOf(_titleLabel, _scrollView); AutoLayoutToolBox.AlignLeftAnchorToLeftOf(_titleLabel, _scrollView); AutoLayoutToolBox.AlignRightAnchorToRightOf(_titleLabel, _scrollView); AutoLayoutToolBox.AlignTopToBottomOf(_imageView, _titleLabel); AutoLayoutToolBox.AlignLeftAnchorToLeftOf(_imageView, View); AutoLayoutToolBox.AlignRightAnchorToRightOf(_imageView, View); AutoLayoutToolBox.AlignTopToBottomOf(_testButton1, _imageView); AutoLayoutToolBox.AlignLeftAnchorToLeftOf(_testButton1, _scrollView); AutoLayoutToolBox.AlignRightAnchorToRightOf(_testButton1, _scrollView); AutoLayoutToolBox.AlignTopToBottomOf(_testButton2, _testButton1); AutoLayoutToolBox.AlignLeftAnchorToLeftOf(_testButton2, _scrollView); AutoLayoutToolBox.AlignRightAnchorToRightOf(_testButton2, _scrollView); }