XAML Richtextbox formatting.
-
Hello All, Can anybody help me out to achieve this with Rich text box. Scenario: I have search text box. When user type 'and' , 'or' i want change the forecolor of those words indicating those are reserved words. Is that possible with richtextbox in XAML? Thanks.
-
Hello All, Can anybody help me out to achieve this with Rich text box. Scenario: I have search text box. When user type 'and' , 'or' i want change the forecolor of those words indicating those are reserved words. Is that possible with richtextbox in XAML? Thanks.
You should be able to do this using the TextChanged event and manipulating the flowdocument. Here's a couple examples: RichTextBox syntax highlighting[^] Customize RichTextBox to allow only plain text input[^]
Mark Salsbery Microsoft MVP - Visual C++ :java: