I have a richtextbox, and when it is full, I want it to scroll automatically to the bottom, maybe? Do it with xaml?
Using ScrollViewer.ScrollChanged routed event and writing some code (for example, richTextBox1.ScrollToEnd() ), you can do what you want.
ScrollViewer.ScrollChanged
richTextBox1.ScrollToEnd()
RichTextBox has a ScrollToEnd method that could be called in Codebehind. I do not know how to do this only in XAML.
RichTextBox
ScrollToEnd
Assuming your RichTextBox is named Output , attach this method to the TextChanged event:
Output
TextChanged
void Output_TextChanged(object sender, TextChangedEventArgs e) { Output.ScrollToEnd(); }