public override void AppendLineToChatHistory(string message) { ChatHistoryBox.InvokeOnMainThread(new Action(() => { ChatHistoryBox.Text += message + Environment.NewLine; ChatHistoryBox.ScrollRangeToVisible(new NSRange(ChatHistoryBox.Text.Length, 1)); })); }
public override void ClearChatHistory() { ChatHistoryBox.InvokeOnMainThread(new Action(() => { ChatHistoryBox.Text = ""; CGPoint bottomOffset = new CGPoint(0, ChatHistoryBox.ContentSize.Height - ChatHistoryBox.Bounds.Size.Height); ChatHistoryBox.SetContentOffset(bottomOffset, true); })); }