Hi! I want to be able to change themes and am setting the Background of RadRichTextBox to a DynamicResource. That works, but when I set the Foreground to a DynamicResource the color changes only on text changed.
I want the default Foreground to change automatically.
I've attached a project
1 Answer, 1 is accepted
0
Stenly
Telerik team
answered on 26 Oct 2023, 01:29 PM
Hello Dan,
To change the foreground color of the RadRichTextBox control as desired, when merging different resource dictionaries you can call its OnApplyTemplate method.
The following code snippet shows the modified MainWindow.xaml.cs file from the sample project that you provided: