public void AddTextOutput(string msg) { TextConsol.Dispatcher.Invoke( System.Windows.Threading.DispatcherPriority.Normal, new Action( delegate() { TextConsol.Text += "\n" + msg; ScrollText.ScrollToBottom(); } )); }