Error!
Success!

Changing the Caret Colour in WPF

0
kicks

Changing the Caret Colour in WPF  (Unpublished)

n WPF, you don’t have direct control over the colour of the caret in a TextBox or a RichTextBox. What the framework does is to use the inverse of the colour that you choose for the Background property. I’ve seen a few examples of styles that explicitly set the Background property to {x:Null} to completely remove the background from the TextBox, which enables you to use the same style when then the TextBox is used on top of different backgrounds that you want to show through.


Kicked By:
Drop Kicked By: