This is a migrated thread and some comments may be shown as answers.

Missing text cursor (caret) at small font size

4 Answers 154 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Rotem
Top achievements
Rank 1
Rotem asked on 24 Aug 2011, 06:13 PM

Hi,
When I’m using font size smaller that 12 in the radRichText box - the caret is disappears.

When I’m enlarging the font size to 12 or more - the caret appeared again.

Do you know what’s causing this and how can I fix this?

Thanks

4 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 26 Aug 2011, 01:25 PM
Hi Rotem,

We were not able to reproduce the issue on our end using the latest Q2 release (2011.2.712). Could you make sure that you are using this version of the control and if that is the case, open a support ticket with a sample application which reproduces the issue.
Looking forward to your reply.

Best wishes,
Iva
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Rotem
Top achievements
Rank 1
answered on 31 Aug 2011, 09:35 AM

Hi Iva

I didn’t succeed creating a small sample application with that problem. So I guess the problem caused by styles.

How can I override the caret style?
I think that the caret width is related to font size and when the font size too small the caret disappeared.

0
Accepted
Iva Toteva
Telerik team
answered on 06 Sep 2011, 09:13 AM
Hi Rotem,

The problem must be that you have a default style, which overrides the style of the caret. In order to avoid this behavior, you can declare an empty style in the resources of the rich text box like this:

<telerik:RadRichTextBox x:Name="editor">
    <telerik:RadRichTextBox.Resources>
        <Style TargetType="telerikUI:Caret" />
        <!-- or -->
        <Style TargetType="TextBox" />
        <!-- or -->
        <Style TargetType="Rectangle" />
    </telerik:RadRichTextBox.Resources>
</telerik:RadRichTextBox>

provided that you declare the telerikUI namespace like this:
xmlns:telerikUI="clr-namespace:Telerik.Windows.Documents.UI;assembly=Telerik.Windows.Documents"

If this does not help, we would appreciate a sample project or just the styles you are using, so that we can identify the cause of the issue. Best wishes,
Iva
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Rotem
Top achievements
Rank 1
answered on 06 Sep 2011, 01:46 PM
<Style TargetType="telerikUI:Caret" /> worked.

Thanks.
Tags
RichTextBox
Asked by
Rotem
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Rotem
Top achievements
Rank 1
Share this question
or