private void SetKeyboardFocus() { if (_view == null) _view = GetView() as UserChatView; // GetView could return null if (_view != null) Keyboard.Focus(_view.Message); }
private void ScrollToEnd() { if (_view == null) _view = GetView() as UserChatView; // GetView could return null if (_view != null) _view.ChatContent.ScrollToLine(_view.ChatContent.LineCount - 1); }