Click here to Skip to main content
15,902,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello everyboby

I can't find any solution to that problem. I just want to be able to bind a document in a richTextBox using mvvm, actually all i want is to be able to choose the color of the different words in the code behind. I have tried this richtextbox : Extended WPF Toolkit™ Community Edition - Documentation[^] but i can't find how to change tge color of the text ? maybe there is another control who could do that ?

thank for your help :)

have a good day !

What I have tried:

i tried to use this toolkit : Extended WPF Toolkit™ Community Edition - Documentation[^]

and also this : A Bindable WPF RichTextBox[^]

but no success....
Updated 18-May-17 10:08am

1 solution

Seems, that using RichtextBox for such of requirement is bit complicated. Please read the comment to that question: c# - How can I color different parts of my log entries to a RichTextBox in an efficient way? - Stack Overflow[^] There's a hope to resolve your issue in a different way. Follow the link provided in the comment ;)
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900