Doing AutoScroll with ScrollViewer.ScrollToEnd() only worked while debugging, event handler too simple
问题 Looking at this solution for a better autoscroll I thought myself to be so clever to find an easier solution, but it works only in a debug session: private void scrollviewer_Messages_ScrollChanged(object sender, ScrollChangedEventArgs e) { ScrollViewer sv = sender as ScrollViewer; if (sv.VerticalOffset == sv.ScrollableHeight) { sv.ScrollToEnd();//debug breakpoint } return; } While adding content to the textblock in this ScrollViewer, autoscroll works, the bottom of the text stays in view.