Word wrap in RichTextBox
WPF
1
Posts
1
Posters
0
Views
1
Watching
-
I have a WPF project containing a
RichTextBox
. I want the text not to wrap. I can force this by setting thePageWidth
for the containedFlowDocument
to be a large number. However, I really want thePageWidth
to adjust itself to the length of the longest line (paragraph), so that the horizontal scroll bar thumb will have an appropriate length. I tried settingPageWidth
toAuto
, but this did not prevent wrapping. Thanks for your suggestions! tfhain