private void ClearText() { var action = new Action(() => TXT_Output.SetCurrentValue(TextBox.TextProperty, null)); Dispatcher.BeginInvoke(DispatcherPriority.Send, action); }
private void AppendText(string text) { var action = new Action(() => TXT_Output.AppendText($"{DateTime.Now}: {text}{Environment.NewLine}")); Dispatcher.BeginInvoke(DispatcherPriority.Send, action); }