Search code examples
wpfwpf-style

Changing color of positionmarker/caret


What is the name of the element of a text box control which I need to manipulate to achieve a change of the color of the position marker in the text box?
The normal foreground attribute changes the actual texts color, but the position marker stays the same color.


Solution

  • To modify the color of the caret (which assume is what you call "positionmarker") you have to set the CaretBrush property of the TextBox.