public void UpdateTextFromFile() { var text = string.Join(Environment.NewLine, File.ReadLines(Conf.timespentFile).Reverse()); Doc.Blocks.Clear(); Doc.Blocks.Add(new Paragraph(new Run(text))); MainText.Focus(); MainText.ScrollToHome(); }