Lester's WPF\SL Blog

Simple, Easy & Beautiful

New WPF Features: CaretBrush\SelectionBrush

New WPF Features: CaretBrush\SelectionBrush

Rate This
  • Comments 4

This is part of a series on New WPF Features

There have been quite a few asks for changing the selection color and the caret color. We have now provide 2 properties to make this possible

  • CaretBrush
  • SelectionBrush  

An example usage would be like

  • SelectionBrush="RED"
  • SelectionOpacity="0.3"  (Default value is 0.6)
  • CaretBrush="Red"

 

These properties are avaialble on controls that allow selection\caret.

Share this post

 

  • Thanks for sharing this info! This is a very needed feature indeed

  • Can you also use a transparent brush for the caret?

  • Doug, any brush should work..

  • Thank you for the information as well as your blog!

    :)

Page 1 of 1 (4 items)