如何设置 WPF 文本框插入符号的样式.

问题描述:

是否可以在 wpf 的 TextBox 中设置插入符号的样式?改变颜色很容易,但我需要改变形状.我如何找到这个模板?

Is it possible to style the caret within a TextBox in wpf? Changing the color is easy enough, but I need to change the shape. How do I go about finding this template?

这是一个可能的解决方案,尽管它确实使用了代码.

Here is a possible solution, though it does use code behind.

http://www.codeproject.com/Articles/633935/Customizing-the-Caret-of-a-WPF-TextBox

似乎只能用样式更改颜色.

It appears that only the color can be changed with a style.

TextBox 脱字符样式