title: WP7: Get current PivotItem for data-bound Pivot
body: <p>I have a Pivot, whose ItemsSource is set to a collection of data objects, and I use an ItemTemplate to transform the items into UI content (I also use a HeaderTemplate).</p>
  
  <p>When tombstoning, I normally get the ScrollViewer from the current PivotItem and save the current position away, so that I can scroll back to the right position if the user navigates back to my app.  This works fine if I hard-code the PivotItems in my XAML.</p>
  
  <p>My issue is that the when the Pivot is bound to my data object collection using ItemsSource, SelectedItem returns one of my data objects - not the PivotItem.  I can't see how to get to the current PivotItem (or the UI elements generated from my ItemTemplate).  I've noticed protected members to go from a ItemsSource item to its corresponding container - perhaps I need to derive from Pivot to make use of these?</p>
  
  <p>Thanks!</p>
  
  <p>Damian</p>