Look at how it should be in your case:
<TextBox AcceptsReturn="True" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" TextWrapping="Wrap" />
Actually,
AcceptReturn
can be either
true
or
false
, depending on your requirements,
Auto
value for scroll bars is only a recommendation (horizontal bar will be never shown in case of wrapping), only
TextWrapping
is critical to satisfy your requirement.
Use can also assign
AcceptsReturn
,
TextWrapping
and other properties in C# code, of course.
—SA