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

UI for Disabled RadRichTextBox

1 Answer 101 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
tushar
Top achievements
Rank 1
tushar asked on 05 Dec 2016, 12:28 PM

Hello!

      I'm using the "RadRichTextBox" in my project. I'm facing a problem when the control is disabled (i.e. IsEnabled = False). In disabled state the controls turns Grey and the text visibility is very low. I cannot use read-only or any other property as they are being used for other purpose. I need to change the template for Disabled control, so as to not make it Grey but make the Disable mask transparent instead. Need help for the same.

Thanks

Tushar

     

1 Answer, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 05 Dec 2016, 05:22 PM
Hello Tushar,

You can find the documentation on how to edit the control's template at the following locaitons:

Overview (read this first)
Template Structure
Styling the RadRichTextBox (this one contains instructions on how to style it)

Take a look at the visual states for the control, you'll find a disable state (see my attached screenshot). That's the one you can style to your liking.

For your convenience, I have attached a project with the RadRichTextBox style already copied out into "RadRichTextBoxStyle1" and used in MyRichTextBox on MainPage.xaml. 

Regards,
Lance | Tech Support Engineer, Sr.
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
Tags
RichTextBox
Asked by
tushar
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or