Missing text cursor (caret) at small font size

5 posts, 1 answers
  1. Rotem
    Rotem avatar
    25 posts
    Member since:
    Sep 2010

    Posted 24 Aug 2011 Link to this post

    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

  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 26 Aug 2011 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Rotem
    Rotem avatar
    25 posts
    Member since:
    Sep 2010

    Posted 31 Aug 2011 Link to this post

    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.

  5. Answer
    Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 06 Sep 2011 Link to this post

    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 >>

  6. Rotem
    Rotem avatar
    25 posts
    Member since:
    Sep 2010

    Posted 06 Sep 2011 Link to this post

    <Style TargetType="telerikUI:Caret" /> worked.

    Thanks.
Back to Top
UI for WPF is Visual Studio 2017 Ready