Freigeben über


New WPF Features: CaretBrushSelectionBrush

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

Comments

  • Anonymous
    October 27, 2009
    Thanks for sharing this info! This is a very needed feature indeed

  • Anonymous
    November 06, 2009
    Can you also use a transparent brush for the caret?

  • Anonymous
    November 06, 2009
    Doug, any brush should work..

  • Anonymous
    December 15, 2009
    Thank you for the information as well as your blog! :)