Ejemplo n.º 1
0
        private void ClearText()
        {
            var action = new Action(() => TXT_Output.SetCurrentValue(TextBox.TextProperty, null));

            Dispatcher.BeginInvoke(DispatcherPriority.Send, action);
        }
Ejemplo n.º 2
0
        private void AppendText(string text)
        {
            var action = new Action(() => TXT_Output.AppendText($"{DateTime.Now}: {text}{Environment.NewLine}"));

            Dispatcher.BeginInvoke(DispatcherPriority.Send, action);
        }