title: ListView Selection color in WPF
body: <p>I am new to WPF and i am not getting how to change the selection color in the List view. I have tried many things but i am not able to change. Following is the code:</p>
  
  <p><strong>MainWindow.xaml:</strong></p>
  
  <pre><code>&lt;Window x:Class="MyListView.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
          xmlns:local="clr-namespace:MyListView"
          mc:Ignorable="d"
          Title="MainWindow" Height="450" Width="800"&gt;
  
      &lt;Window.Resources&gt;
          &lt;Style TargetType="ListViewItem"&gt;
              &lt;Style.Resources&gt;
                  &lt;SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Red"/&gt;
              &lt;/Style.Resources&gt;
          &lt;/Style&gt;
      &lt;/Window.Resources&gt;
      &lt;Grid&gt;
          &lt;ListView x:Name="MovieListView" Margin="30,0,50,48" Height="344" VerticalAlignment="Bottom"&gt;
              &lt;ListView.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;StackPanel&gt;
                          &lt;TextBlock Text="{Binding Path= MovieID}" /&gt;
                          &lt;TextBlock Text="{Binding Path= MovieName}" FontWeight="Bold" /&gt;
                      &lt;/StackPanel&gt;
                  &lt;/DataTemplate&gt;
              &lt;/ListView.ItemTemplate&gt;
          &lt;/ListView&gt;
  
      &lt;/Grid&gt;
  &lt;/Window&gt; 
  </code></pre>
  
  <p><strong>MainWindow.xaml.cs</strong></p>
  
  <pre><code>namespace MyListView
  {
      public class MyDataModel
      {
          public String MovieName { get; set; }
          public String MovieID { get; set; }
  
          public MyDataModel(String ID, String Name)
          {
              MovieID = ID;
              MovieName = Name;
          }
      }
      /// &lt;summary&gt;
      /// Interaction logic for MainWindow.xaml
      /// &lt;/summary&gt;
      public partial class MainWindow : Window
      {
          public MainWindow()
          {
              InitializeComponent();
  
              MovieListView.Items.Add(new MyDataModel("MV_1","Movie 1" ));
              MovieListView.Items.Add(new MyDataModel("MV_2", "Movie 2"));
              MovieListView.Items.Add(new MyDataModel("MV_3", "Movie 3"));
          }
      }
  }
  </code></pre>
  
  <p>Can you please explain to me how to change the selection color.</p>
  
  <p><strong>Edit1 : Added ScreenShot</strong></p>
  
  <p><a href="https://i.stack.imgur.com/JGT9H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JGT9H.png" alt="enter image description here"></a></p>