private void ChatHistoryTextInput(object sender, TextCompositionEventArgs e) { // Redirect input from the chat history to the chat input ChatInput.Focus(); ChatInput.SelectedText = e.Text; ChatInput.Select(ChatInput.SelectionStart + e.Text.Length, 0); }
void OnHistoryTextInput(object sender, TextCompositionEventArgs e) { ChatInput.SelectedText = e.Text; ChatInput.Select(ChatInput.SelectionStart + ChatInput.SelectionLength, 0); ChatInput.Focus(); }