public TextAreaHandler() { Control = new EtoTextView { Handler = this, Delegate = new EtoDelegate { Handler = this }, AutoresizingMask = NSViewResizingMask.WidthSizable | NSViewResizingMask.HeightSizable, HorizontallyResizable = true, VerticallyResizable = true, Editable = true, Selectable = true, AllowsUndo = true, MinSize = sd.SizeF.Empty, MaxSize = new sd.SizeF(float.MaxValue, float.MaxValue) }; Control.TextContainer.WidthTracksTextView = true; Scroll = new EtoScrollView { Handler = this, AutoresizesSubviews = true, HasVerticalScroller = true, HasHorizontalScroller = true, AutohidesScrollers = true, BorderType = NSBorderType.BezelBorder, DocumentView = Control }; }
protected override void Initialize() { base.Initialize(); Control = new EtoTextView(); Control.Layer.BorderWidth = 1f; Control.Layer.BorderColor = UIColor.Gray.CGColor; Control.Layer.CornerRadius = 2f; }