예제 #1
0
        public CropView()
        {
            this.BackgroundColor = UIColor.FromRGBA(0.9f, 0.9f, 0.9f, 0.2f);
            this.AutosizesSubviews = true;

            _topLeft = new MovableView();
            _topLeft.BackgroundColor = UIColor.Green;
            _topLeft.AutoresizingMask = UIViewAutoresizing.FlexibleLeftMargin | UIViewAutoresizing.FlexibleTopMargin;
            this.AddSubviews(_topLeft);

            _bottomRight = new MovableView();
            _bottomRight.BackgroundColor = UIColor.Green;
            _topLeft.AutoresizingMask = UIViewAutoresizing.FlexibleRightMargin | UIViewAutoresizing.FlexibleBottomMargin;
            this.AddSubviews(_bottomRight);
        }
예제 #2
0
        public CropView()
        {
            this.BackgroundColor   = UIColor.FromRGBA(0.9f, 0.9f, 0.9f, 0.2f);
            this.AutosizesSubviews = true;

            _topLeft = new MovableView();
            _topLeft.BackgroundColor  = UIColor.Green;
            _topLeft.AutoresizingMask = UIViewAutoresizing.FlexibleLeftMargin | UIViewAutoresizing.FlexibleTopMargin;
            this.AddSubviews(_topLeft);

            _bottomRight = new MovableView();
            _bottomRight.BackgroundColor = UIColor.Green;
            _topLeft.AutoresizingMask    = UIViewAutoresizing.FlexibleRightMargin | UIViewAutoresizing.FlexibleBottomMargin;
            this.AddSubviews(_bottomRight);
        }