void ShowLogItem(LogEntity log) { AppendContent(GetParagraphForLog(log)); if (_logViewModel.IsAutoScrollToEnd) { RichTextBoxLogs.ScrollToEnd(); } }
void ShowLog(string log) { AppendContent(new Paragraph(new Run(log)) { Tag = DateTime.Now }); if (_logViewModel.IsAutoScrollToEnd) { RichTextBoxLogs.ScrollToEnd(); } }