// Protocol method called after EditableCoreTextView has determined that user has
        // invoked "edit" mode (via touching inside EditableCoreTextView).  For this sample
        // we provide a "Done" button at this point that the user can use to finish text
        // editing mode.
        void HandleEditableCoreTextViewViewWillEdit(EditableCoreTextView editableCoreTextView)
        {
            // provide "Done" button to dismiss the keyboard
            UIBarButtonItem doneItem = new UIBarButtonItem(UIBarButtonSystemItem.Done, (a, b) => doneEditingAction());

            navigationBar.TopItem.RightBarButtonItem = doneItem;
        }
		public override void ViewDidUnload ()
		{
			base.ViewDidUnload ();

			// Release any retained subviews of the main view.
			// e.g. this.myOutlet = null;
			editableCoreTextView.ViewWillEdit -= HandleEditableCoreTextViewViewWillEdit;
			editableCoreTextView = null;
		}
        public override void ViewDidUnload()
        {
            base.ViewDidUnload();

            // Release any retained subviews of the main view.
            // e.g. this.myOutlet = null;
            editableCoreTextView.ViewWillEdit -= HandleEditableCoreTextViewViewWillEdit;
            editableCoreTextView = null;
        }
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			//any additional setup after loading the view, typically from a nib.
			//editableCoreTextView = new EditableCoreTextView ();
			editableCoreTextView = new EditableCoreTextView (View.Bounds.Inset (5, 40));
			View.BackgroundColor = UIColor.White;
			View.Add (editableCoreTextView);
			editableCoreTextView.ViewWillEdit += HandleEditableCoreTextViewViewWillEdit;
		}
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            //any additional setup after loading the view, typically from a nib.
            //editableCoreTextView = new EditableCoreTextView ();
            editableCoreTextView = new EditableCoreTextView(View.Bounds.Inset(5, 40));
            View.BackgroundColor = UIColor.White;
            View.Add(editableCoreTextView);
            editableCoreTextView.ViewWillEdit += HandleEditableCoreTextViewViewWillEdit;
        }
		// Protocol method called after EditableCoreTextView has determined that user has
		// invoked "edit" mode (via touching inside EditableCoreTextView).  For this sample
		// we provide a "Done" button at this point that the user can use to finish text
		// editing mode.
		void HandleEditableCoreTextViewViewWillEdit (EditableCoreTextView editableCoreTextView)
		{
			// provide "Done" button to dismiss the keyboard
			UIBarButtonItem doneItem = new UIBarButtonItem (UIBarButtonSystemItem.Done, (a, b) => doneEditingAction ());
			navigationBar.TopItem.RightBarButtonItem = doneItem;
		}
 public TapGestureRecognizerDelegate(EditableCoreTextView parent)
 {
     this.parent = parent;
 }