title: WPF ListView Inactive Selection Color
body: <p>I'm creating a WPF application where several ListView selections are made in a row (similar to the iTunes browser). The problem is that the default inactive selection color is too light. (see below)
  <img src="https://i.stack.imgur.com/hwctc.jpg" alt="Default inactive selection color (too light)"></p>
  
  <p>How can I change this color so my inactive listview looks like this? (see below)
  <img src="https://i.stack.imgur.com/aORZ9.jpg" alt="Inactive and active selection colors the same"></p>
  
  <h2>Solution</h2>
  
  <p>Override the default SystemColor with a <code>Style</code> like so:</p>
  
  <pre><code>&lt;Style TargetType="ListViewItem"&gt;
      &lt;Style.Resources&gt;
          &lt;SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="{x:Static SystemColors.HighlightColor}"/&gt;
      &lt;/Style.Resources&gt;
  &lt;/Style&gt;
  </code></pre>