public DebugWindow() { InitializeComponent(); TxtBoxLog.AppendText(Logger.logBuffer.ToString()); TxtBoxLog.ScrollToEnd(); Logger.Logged += Logger_Logged; }
private void Logger_Logged(object sender, LogEventArgs e) { this.Dispatcher.Invoke(() => { TxtBoxLog.AppendText(e.FullMessage); TxtBoxLog.ScrollToEnd(); }); }