Changing the Caret Colour in WPF(cloudstore.blogspot.com)
submitted by
paulj(55) 3 years, 4 months ago
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.
|category: Windows Presentation Foundation
|Views: 30
tags:
WPF another
Everyones tags:
Your Tags: