RadRichTextBox change grey background

2 posts, 0 answers
  1. Sean
    Sean avatar
    1 posts
    Member since:
    May 2011

    Posted 17 Jun 2015 Link to this post

    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

  2. Tanya
    Admin
    Tanya avatar
    405 posts

    Posted 18 Jun 2015 Link to this post

    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 implementation 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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top