public void AddTextToConsole(string text) { Application.Current.Dispatcher.Invoke(new Action(() => { DebugConsole.AppendText(text + "\n"); DebugConsole.Focus(); DebugConsole.CaretIndex = DebugConsole.Text.Length; DebugConsole.ScrollToEnd(); })); }
public void AddTextToConsole(string text) { Application.Current.Dispatcher.Invoke(new Action(() => { DebugConsole.AppendText(text + "\n"); DebugConsole.Focus(); DebugConsole.CaretIndex = DebugConsole.Text.Length; DebugConsole.ScrollToEnd(); })); }