Is it possible to let a WPF-TextBox autoscroll but stop that behavior when the ScrollBar is moved. When the user scrolls to end the TextBox should scroll again automatically to end on text change.
textBox1.ScrollToEnd();
This would work as long as the user does not move the ScrollBar.
I found a somehow hacky way to do this:
But this would stop working if the name of the ScrollViewer in the TextBox-Template changes.
I have recreated what I think you have in your setup:
I assume that you have some event that edits this textbox in my setup it is a button. And its click handler:
This will auto scroll to end after text edit only if scrollbar is on the bottom.
Edit
For cleaner solution you can use behavior:
and xaml: