title: How to get instance of Panel that holds content of ItemsControl?
body: <p>Every <code>ItemsControl</code> has its content stored in Panel right ? We can specify the panel to be used in XAML like this:</p>
  
  <pre><code>&lt;ListView Name="LView"&gt;
      &lt;ListView.ItemsPanel&gt;
          &lt;ItemsPanelTemplate &gt;
              &lt;StackPanel/&gt;
          &lt;/ItemsPanelTemplate&gt;
       &lt;/ListView.ItemsPanel&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>My question is how to get instance of <code>Panel</code> that is used in the <code>ItemsPanel</code> property (of type <code>ItemsPanelTemplate</code>) of the particular <code>ItemsControl</code> ? For example <code>ListView</code> called <code>LView</code> from above code sample?</p>
  
  <p>I cannot use <code>Name</code> property or <code>x:Name</code>, this must work for any <code>ItemsControl</code> even those using default <code>ItemsPanel</code>.</p>
  
  <p>In the case its not clear please comment, I think there is very simple solution. If it seems to be complicated that's only because I cannot explain it properly.</p>