title: How to get ListBox ItemsPanel in code behind
body: <p>I have a ListBox with an ItemsPanel</p>
  
  <pre><code>&lt;Setter Property="ItemsPanel"&gt;
      &lt;Setter.Value&gt;
          &lt;ItemsPanelTemplate&gt;
               &lt;StackPanel x:Name="ThumbListStack" Orientation="Horizontal" /&gt;
          &lt;/ItemsPanelTemplate&gt;
      &lt;/Setter.Value&gt;
  &lt;/Setter&gt;
  </code></pre>
  
  <p>I am wanting to move the Stack Panel along the X-axis using a TranslateTransform in code behind.</p>
  
  <p>Problem is, I can't find the Stack Panel.</p>
  
  <pre><code>ThumbListBox.FindName("ThumbListStack")
  </code></pre>
  
  <p>Returns nothing.
  I want to use it in:</p>
  
  <pre><code>Storyboard.SetTarget(x, ThumbListBox.FindName("ThumbListStack"))
  </code></pre>
  
  <p>How do I get the Stack Panel so I can then use it with the TranslateTransform</p>
  
  <p>Thanks</p>