title: WPF - Bind to Item Index from within ItemTemplate of ItemsControl?
body: <p>Is there a way to bind to the ItemIndex from within the ItemTemplate of an ItemsControl?</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;ItemsControl ItemsSource="{Binding Path=ItemList}"&gt;
      &lt;ItemsControl.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;TextBlock Text="{Binding Path=ThisItemsIndex}" /&gt;
          &lt;/DataTemplate&gt;
      &lt;/ItemsControl.ItemTemplate&gt;
  &lt;/ItemsControl&gt;
  </code></pre>