views:

38

answers:

0

Hi !

Suppose you want to override the Background / Foreground / TextSelection ... Colors for your WPF Controls.

In my opinion, you need 2 things:

  • Override the SystemColors in your Resources files
  • Override the ControlTemplates (by adding additional Triggers etc.)

The reason for this is, that some Controls in .NET 3.5 don't allow you to set everything directly, or have 'hardcoded' some values.

The only thing I can't find out is how to change the Background of the SelectedText in a WPF TextBox.

OR: Which of all SystemColors Properties is responsible for this one ?

Thanks