private void LoggingUpdated(object sender, EventArgs args) { var doc = new FlowDocument(); TxtLogging.Document = doc; doc.Blocks.Add(new Paragraph(new Run(logContainer.GetText()))); TxtLogging.ScrollToEnd(); }