Changing the Insert Point cursor in WPF

I need to create a "command line" in a WPF application. In WPF, text boxes use a flashing vertical line as the insertion point. In the command line world, the insertion point is a gray rectangle.

Is there a way to change the appearance of the insertion cursor in a WPF textbox? The obvious (Cursor = "Cursor.Whatever") changes the appearance of the mouse cursor when you hover over the text field rather than the insertion point.

I would really appreciate any help. Thanks a lot for your time!

Ria.

+1


source to share


1 answer


You mean "carriages". And you cannot currently change your form in WPF. Only the color is changeable (its the inverse of the background, the background can be transparent, but the caret will always be visible).



+2


source







All Articles