+1  A: 

Have a look at this answer to a similar question. Basically, if you want to restyle the ListBox so that selected items have a different background colour, it's easier to simply change the "HighlightBrush" colour so that the selected item uses the colour you want.

Matt Hamilton
+4  A: 

I'm pretty sure this is a bug, as several people have had this issue with the ListBoxItem template.

To fix, just add:

<Setter Property="Padding" Value="0,0,0,0"/>

to your ContainerStyle template. It's originally 2,0,0,0.

Cameron MacFarland
yes that works, you have to fiddle with it to get padding back in (I had to apply a margin to each of the child textblocks, a border with padding kept bringing the blue line back) but it's doable this way, thanks.
Edward Tanguay