I have a TextBox inside a ChildWindow which I use for text input. I could not get the text box to scroll when the text does not fit inside so I wrapped it inside a ScrollViewer
<ScrollViewer Height="200" VerticalScrollBarVisibility="Auto">
<TextBox Name="TaskDescription" AcceptsReturn="True"></TextBox>
</ScrollViewer>
When the text box is full, it scrolls and this is expected. However, I do not see the current edited line.

I read articles on making the ScrollViewer automatically scroll but that will make my TextBox scroll to the end which won’t allow editing text somewhere in the middle as it will jump to the end as soon as a key is typed.
The ScrollViewer is trying to accommodate the size of the textbox, which is increasing in size. The better alternative to not use the scrollviewer and to let the textbox naturally place the scrollbars when needed. Nothing should need to be done so the textbox.