title: Get index of ListBoxItem - WPF
body: <p>How do I get the index of a <code>ListBoxItem</code>?</p>
  
  <p>The <code>ListBox</code> has binding to a collection of XML nodes through <code>XmlDataProvider</code>.</p>