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

RadRichTextBox change grey background

1 Answer 199 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Brent
Top achievements
Rank 1
Brent asked on 17 Jun 2015, 08:42 PM

Hi all,

 I am using the RadRichTextBox to display a docx file in ReadOnly mode. 

By default, the RadRichTextBox shows a gray background behind the page. I would like to change this from gray to black, but I cannot figure out how. I would rather not include a theme from telerik in my assembly as this is the only visual change I need to make.

Just to be clear, I want to change the background behind the page, not the color of the page itself.

Thanks

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 18 Jun 2015, 02:25 PM
Hi Sean,

You could change the template of the document layout presenters, which will allow you to change the background color of the RadRichTextBox. If you are using the control in Flow layout mode, you will need the template of the DocumentWebLayoutPresenter and for the Paged layout mode responsible is the DocumentPrintLayoutPresenter. If you will be using both layout modes you can set both styles. For the  you could refer to the attached project, which is demonstrating the described approach.

Hope this helps.

Regards,
Tanya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
RichTextBox
Asked by
Brent
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or