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); }
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); }