title: Setting listview ItemContainerStyle in WPF
body: <p>I have a <code>ListView</code> which rows alternate color:</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;Grid.Resources&gt;
          &lt;Style x:Key="RowColorStyle" TargetType="ListViewItem"&gt;
              &lt;Setter Property="IsSelected" Value="{Binding IsSelected}"/&gt;
              &lt;Style.Triggers&gt;
                  &lt;Trigger Property="ItemsControl.AlternationIndex"  Value="0"&gt;
                      &lt;Setter Property="Background" Value="LightBlue" /&gt;
                  &lt;/Trigger&gt;
                  &lt;Trigger Property="ItemsControl.AlternationIndex"  Value="1"&gt;
                      &lt;Setter Property="Background" Value="LightGray" /&gt;
                  &lt;/Trigger&gt;
                  &lt;Trigger Property="IsSelected" Value="True"&gt;
                      &lt;Setter Property="Background" Value="Orange"/&gt;
                  &lt;/Trigger&gt;
              &lt;/Style.Triggers&gt;
          &lt;/Style&gt;
      &lt;/Grid.Resources&gt;
  
      &lt;ListView ItemContainerStyle="{StaticResource alternatingStyle}" AlternationCount="2"&gt;
      &lt;/ListView&gt;
  
  &lt;/Grid&gt;
  </code></pre>
  
  <p>Now I have set listview <code>ItemContainerStyle</code> as below:</p>
  
  <pre><code>&lt;ListView.ItemContainerStyle&gt;
      &lt;Style TargetType="ListViewItem"&gt;
          &lt;Setter Property="IsSelected" Value="{Binding IsSelected}"/&gt;
          &lt;EventSetter Event="PreviewMouseLeftButtonDown" Handler="lvi_MouseDown" /&gt;
          &lt;EventSetter Event="PreviewMouseMove"  Handler="lvi_MouseMove" /&gt;
      &lt;/Style&gt;
  &lt;/ListView.ItemContainerStyle&gt;
  </code></pre>
  
  <p>The problem now is that listview define <code>ItemContainerStyle</code> body more than one time so I am trying to move <code>ItemContainerStyle="{StaticResource alternatingStyle}"</code> within the last defined <code>ItemContainerStyle</code> section just implemented but I do not know how to do it.</p>