Click here to Skip to main content
15,843,623 members

Comments by Andre Dieme (Top 3 by date)

Andre Dieme 23-Jul-16 12:35pm View    
Thanks a lot! It works great.
I changed the code a bit because this methode could be applied to all Richt textboxes.

private void RichTextBox_TextChanged(object sender, TextChangedEventArgs e)
{
RichTextBox x = (RichTextBox)sender;
x.Selection.ApplyPropertyValue(TextElement.ForegroundProperty, Brushes.Red);
}
Andre Dieme 14-Jul-16 1:43am View    
Thank you for your answer. But it does not work. I think it should be e.OriginialSource. But the OriginalSource is the textblock and not the datagrid. So I need loop through the parents until I found the datagrid.
Andre Dieme 13-Jul-16 15:50pm View    
Thank you for your answer but it does not work.