title: Change selection-color of WPF ListViewItem
body: <p>I have a ListView containing some ListViewItems. By default, selecting items makes their background to some deep blue. I would like to apply a style such that selecting an item does not change its look.</p>
  
  <p>In my xaml I already achieved this:</p>
  
  <pre><code>&lt;Style TargetType="ListViewItem"&gt;
     &lt;Style.Resources&gt;
        &lt;SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent"/&gt;
     &lt;/Style.Resources&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>Unfortunately, this does not do the trick. It just simply makes the selection white instead of blue. </p>
  
  <p>Does anyone have an idea?</p>
  
  <p>Best wishes,
  Christian</p>
  
  <p><strong>EDIT:</strong>
  Sample Code:</p>
  
  <pre><code>&lt;Window.Resources&gt;
      &lt;Style TargetType="ListViewItem"&gt;
          &lt;Style.Resources&gt;
              &lt;SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black"/&gt;                      
              &lt;SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent"/&gt;
          &lt;/Style.Resources&gt;
      &lt;/Style&gt;
  &lt;/Window.Resources&gt;
  
  
  
  &lt;ListView x:Name="lvTestRun" ItemsSource="{Binding Path=TestRunData}" Margin="177,26,8,53.277" SelectionMode="Multiple"&gt;
      &lt;ListView.View&gt;
          &lt;GridView&gt;
              &lt;GridViewColumn Header="Status"/&gt;
              &lt;GridViewColumn Header="Duration"/&gt;
              &lt;GridViewColumn Header="Start Time"/&gt;
              &lt;GridViewColumn Header="End Time"/&gt;
          &lt;/GridView&gt;
      &lt;/ListView.View&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>In order to reproduce this, you may have to set the background color of a single ListViewItem to something like green or red.</p>