If the Horizontal scroll bars are on, I can scroll over to see the text, but the user should be able to see what they are typing as they type it. Also, the width of the text area is pretty large which means as soon as they scroll even a little bit, everything they typed is no longer being displayed, unless they creep along pushing the arrows at the end of the scrollbar.
Is there any way to get the cursor/caret to always be on the screen?
Here's the XAML for the RichTextBox:
<telerik:RadRichTextBox x:Name="RichText1"
BorderBrush="{Binding Path=BorderBrush, ElementName=tbShortName}"
BorderThickness="1"
Loaded="RichText1_Loaded"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
KeyDown="RichText1_KeyDown"
Margin="5"
HorizontalScrollBarVisibility="Hidden"
CurrentSpanStyleChanged="RichText1_CurrentSpanStyleChanged">
and the code-behind where I create the document, section, and paragraph:
private void RichText1_Loaded(object sender, RoutedEventArgs e)
{
RadDocument document = new RadDocument();
document.LayoutMode =
DocumentLayoutMode.FlowNoWrap;
document.SectionDefaultPageMargin =
new Padding(5);
Section section = new Section();
document.Sections.Add(section);
_messageParagraph =
new Paragraph();
_messageParagraph.SpacingAfter = 0;
section.Paragraphs.Add(_messageParagraph);
RichText1.Document = document;
}