Hi,
I'm wondering if it's possible to use a Telerik theme (Expression Dark) while overriding certain theme properties. For example, I find that the Expression Dark theme looks good overall, but I'd like the caret in a TextBox to be white rather than black.
I tried the following in my application resource dictionary:
This uses an implicit style to apply the Expression Dark theme to all text boxes. I found that when I did this, the content became centered for some reason; so I also added the HorizontalContentAlignment setter.
When I use the above style, the CaretBrush setter has no effect - the caret remains black. I can set the CaretBrush explicitly on each TextBox element, but I was hoping to apply the same style to all text boxes automatically.
Is there a better way to do this? We are still using Silverlight 4 - I'm not sure if that makes a difference.
I guess another option would be to create a custom TextBox-derived control, and set the properties I want to change programmatically. Or should I investigate making a copy of the Expression Dark theme and modifying it?
Thanks for your help,
Richard