다음을 통해 공유


Caret Brush

WPF provides extensive customizability to app authors, allowing them to change the default look and feel of most controls. One exception to this has been the color of the caret in WPF TextBoxes and RichTextBoxes. Since this functionality was not originally provided, the community has been forced to create complex workarounds. In WPF 4.0, control over the caret color has been exposed in an intuitive and simple to use manner.

 

 

Caret Brush API

The property CaretBrush is now available for use on TextBox, RichTextBox, and PasswordBox.

· CaretBrush - The brush assigned to this property will be used to draw the caret.

 

<TextBox CaretBrush="Yellow" FontSize="12pt"/>

YellowKorean

 

 - Chipalo