WPF ListView in GridView mode Highlighting problem

Posted by xenik on Stack Overflow See other posts from Stack Overflow or by xenik
Published on 2010-03-25T16:19:09Z Indexed on 2010/03/25 16:23 UTC
Read the original article Hit count: 318

Filed under:
|
|

While reskining GridView (ListView with more columns), I ran into a problem, that I couldn't change the color of the Highlighted row. I searched the internet and found out, that adding this can help.

<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" 
                 Color="Transparent" />
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" 
                 Color="Transparent" />

This solved the issue for some people but it didnt help me. The Highlight color was still in system default. I finally managed to change the color of the selected row, but the highlight is still visible around the border of the row plus i need to get rid of the Highlight in the ColumnHeaders.

Heres the code, where my approach doesn't work.

sth sthelse

© Stack Overflow or respective owner

Related posts about wpf

Related posts about listview