Пример #1
0
 public LineHeightForTextView(UIView container, UIView control, Element element)
 {
     _nativeTextView = control as UITextView;
     _formsEditor    = element as Editor;
     _manager        = new LineHeightManager();
     _nativeTextView.LayoutManager.Delegate = _manager;
 }
Пример #2
0
        public void OnDetached()
        {
            _nativeTextView.LayoutManager.Delegate = null;

            _nativeTextView.Text = _nativeTextView.Text;

            _manager.Dispose();
            _manager        = null;
            _nativeTextView = null;
            _formsEditor    = null;
        }