title: WPF Alternation and selected background color doesn't work together
body: <p>I struggle with Alternation style and selected row background color style in ListViewItem. I could make that they work separately, but together they does not work. Maybe someone know problem?</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;AlternationConverter x:Key="BackgroundConverter"&gt;
          &lt;SolidColorBrush Color="#19f39611" /&gt;
          &lt;SolidColorBrush Color="#19000000" /&gt;
      &lt;/AlternationConverter&gt;
  
      &lt;Style x:Key="Style2" TargetType="ListViewItem"&gt;
          &lt;Setter Property="SnapsToDevicePixels" Value="true"/&gt;
          &lt;Setter Property="OverridesDefaultStyle" Value="true"/&gt;
          &lt;Setter Property="Template"&gt;
              &lt;Setter.Value&gt;
                  &lt;ControlTemplate TargetType="ListViewItem"&gt;
                      &lt;Border 
                          Name="Border"
                          Padding="2"
                          SnapsToDevicePixels="true"
                          Background="Transparent"&gt;
                          &lt;GridViewRowPresenter
                              VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/&gt;
                      &lt;/Border&gt;
                      &lt;ControlTemplate.Triggers&gt;
                          &lt;Trigger Property="IsSelected" Value="true"&gt;
                              &lt;Setter TargetName="Border"
                                      Property="Background" Value="Red"/&gt;
                          &lt;/Trigger&gt;
                          &lt;Trigger Property="IsEnabled" Value="false"&gt;
                              &lt;Setter Property="Foreground" 
                                      Value="Beige"/&gt;
                          &lt;/Trigger&gt;
                      &lt;/ControlTemplate.Triggers&gt;
                  &lt;/ControlTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  
      &lt;Style x:Key="Style1" TargetType="{x:Type ListViewItem}" BasedOn="{StaticResource Style2}"&gt;
          &lt;Setter Property="Background" Value="{Binding RelativeSource={RelativeSource Self},
               Path=(ItemsControl.AlternationIndex),
               Converter={StaticResource BackgroundConverter}}"/&gt;
      &lt;/Style&gt;
  </code></pre>
  
  <p>.....</p>
  
  <pre><code>&lt;ListView  AlternationCount="2" ItemContainerStyle="{StaticResource Style1}" &gt;
  </code></pre>