Chciałbym zrobić aby za raz po dodaniu tekstu do RichTextBox pojawił się na ekranie.
Próbowałem tak, lecz nie dokończa działa tak jak dodaję tekst
internal static class ColorText
{
public static void Add(string text, Color color, RichTextBox textBoxInfo)
{
textBoxInfo.Dispatcher.Invoke(() => textBoxInfo.Document.Blocks.Add(new Paragraph(new Run(text))
{
Foreground = new SolidColorBrush(color)
}), DispatcherPriority.Background);
}
}
}