title: WPF - Animate ListBox.ScrollViewer.HorizontalOffset?
body: <p>I have a collection of <code>Visual</code>s in a <code>ListBox</code>. I need to find the <code>XPosition</code> of an element inside it and then animate the <code>HorizontalOffset</code> of the <code>ListBox</code>'s <code>ScrollViewer</code>.  Essentially I want to created an animated <code>ScrollIntoView</code> method.</p>
  
  <p>This gives me a couple of problems.  Firstly, how can I get a reference to the <code>ListBox</code>s scrollviewer?  Secondly, how can i get the relative <code>XPosition</code> or <code>HozintalOfffset</code> of an arbitrary element in the <code>ListBox</code>?</p>
  
  <p>I'm not reponding to any input on the <code>ListBox</code> itself so I can't use <code>Mouse</code> related properties.</p>