Setting the Selection Color for a list box item in WPF

WPF’s styling and templating support is amazing, but some controls are easier to template then others, one of the least intuitive to style controls is the ListBox, it’s very difficult to change the ListBoxItem selection background color for example.

Here is a post on the WPF SDK blog that explains how to do it.

I’ve posted this here so I’ll know where to look the next time I want to style a list box

posted @ Friday, December 7, 2007 1:03 AM

Comments on this entry:

No comments posted yet.

Your comment:

 (will not be displayed)

Please add 7 and 8 and type the answer here: