Exemplo n.º 1
0
        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
            };
        }
Exemplo n.º 2
0
 protected override void Initialize()
 {
     base.Initialize();
     Control = new EtoTextView();
     Control.Layer.BorderWidth  = 1f;
     Control.Layer.BorderColor  = UIColor.Gray.CGColor;
     Control.Layer.CornerRadius = 2f;
 }