When the RichTextBox is empty upon start, the caret does not show when I click on the control. However, when I type into the richtextbox, the text shows and the caret appears as well. I tried setting the caretposition of the document in the constructor, but that doesn't work. How do I make the caret show upon start?
Below is the xaml of the usercontrol.
Below is the xaml of the usercontrol.
<
UserControl
x:Class
=
"CommonControl.HtmlEditor"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telerikHtml
=
"clr-namespace:Telerik.Windows.Documents.FormatProviders.Html;assembly=Telerik.Windows.Documents.FormatProviders.Html"
xmlns:telerikHtmlMain
=
"clr-namespace:Telerik.Windows.Documents.FormatProviders.Html;assembly=Telerik.Windows.Documents"
mc:Ignorable
=
"d"
>
<
telerik:RadRichTextBox
HorizontalAlignment
=
"Stretch"
LayoutMode
=
"Flow"
x:Name
=
"editor"
AllowDrop
=
"True"
Drop
=
"editor_Drop"
ShowComments
=
"False"
BorderBrush
=
"Transparent"
BorderThickness
=
"0"
MinWidth
=
"536"
IsSelectionMiniToolBarEnabled
=
"False"
IsContextMenuEnabled
=
"True"
IsInHeaderFooterEditMode
=
"False"
DocumentPresentationChanged
=
"EditorDocumentContentChanged"
MaxWidth
=
"1024"
>
</
telerik:RadRichTextBox
>
</
UserControl
>