title: UWP Different styles for odd and even elements ListBoxItem
body: <p>I need a different background for odd and even elements ListBoxItem . I found a code that should solve my problem, but it doesn't want to work in UWP:</p>
  <pre><code>&lt;Trigger Property=&quot;ItemsControl.AlternationIndex&quot; Value=&quot;1&quot;&gt;
      &lt;Setter Property=&quot;Background&quot; Value=&quot;Orange&quot;/&gt;
  &lt;/Trigger&gt;
  </code></pre>
  <p>Are there any analogues to the property ItemsControl.AlternationIndex, or how can I specify the style of even and odd elements in VisualState?</p>
  <p>Thanks in advance for your reply.</p>