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

Grey box in the upper right corner of the RichTextBox

3 Answers 80 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Dean
Top achievements
Rank 1
Dean asked on 20 Apr 2017, 05:43 AM
What is this grey box in the upper right corner of the RichTextBox which
starts exactly where the ruler ends and how to get rid of it (please
look at the attached screenshot)

3 Answers, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 24 Apr 2017, 01:58 PM
Hello Dean,

The box you are referring to is the ruler thumb indicating the paragraph right indentation. To remove it from the ruler, you will need to remove its declaration from the content template of DocumentRulerBase.

I am attaching a sample project to illustrate how this can be implemented. You could navigate to the "NOTE:" comment in the App.xaml file which indicates where the change is applied.

Please note, in the demo project NoXAML binaries are used. More about the implicit styles, you could read in this help article.

Hope this helps.

Regards,
Tanya
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
0
Dean
Top achievements
Rank 1
answered on 24 Apr 2017, 09:57 PM

Hi Tanya,

Thanks for your reply.

Applying the style you provided to the ruler did not help. Additionally, this grey rectangle box I am referring to is visible in the body of the rich text box even when there is no ruler present.

Perhaps there was a misunderstanding as to which box I was referring to so I included the screenshot without the ruler and the grey box circled with the red pen. Please take a look and let me know if this is the same grey box you had in mind when stating that the style you provided should remove it and if not let me know if there is a way to remove the box I circled in red.

Thanks,
Dean

0
Tanya
Telerik team
answered on 27 Apr 2017, 02:28 PM
Hi Dean,

Indeed, I have misunderstood your questions. Please, excuse me for that.

At this place of the the comments inserted in the document are visualized. However, I checked all the themes we provide and couldn't find a similar issue in any of them. Could you please share more details on the scenario? Which is the theme you are using? Are there any customizations applied? 

You could also check whether you are observing the same behavior in the Theming demo for RadRichTextBox from our official examples. If yes, can you please provide the steps you are performing to reproduce it?

Regards,
Tanya
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
RichTextBox
Asked by
Dean
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Dean
Top achievements
Rank 1
Share this question
or