/// <summary> /// Writes the given message to the textview. /// </summary> /// <param name="message"></param> public override void Write(string message) { _textView.InvokeOnMainThread(() => { _textView.Text = _textView.Text + message; _textView.ScrollRangeToVisible( new MonoTouch.Foundation.NSRange(_textView.Text.Length, 0)); }); }
void AppendText(string text) { Console.Write(text); _textOutput.InvokeOnMainThread(() => { _textOutput.Text = _textOutput.Text + text; var bounds = _textOutput.GetCaretRectForPosition(_textOutput.SelectedTextRange.Start); _textOutput.ScrollRectToVisible(bounds, false); }); }