Does anyone know how I can disable the text wrapping of a RichTextBox?
E.g. if I have a large string which doesn\'t fit in the window, the RichTextBox
Suitable solution for me. The idea was taken from here. I defined in XAML
In Code
private void MyRichTextBox_OnTextChanged(object sender, TextChangedEventArgs e)
{
double i = PART_rtb.Document.GetFormattedText().WidthIncludingTrailingWhitespace + 20;
(sender as RichTextBox).Document.PageWidth = i;
}