title: How to access ScrollViewer in ItemsControl
body: <p>I'm trying to access the ScrollViewer named 'ScrollViewerItems' in the XAML below and use it in code behind. The name doesn't seem to be recognized, likely because its embedded in the ItemsControl. I don't need the named access, but how to I get to the ItemsControl's ScrollViewer in code behind?</p>
  
  <pre><code>&lt;ItemsControl x:Name="EnteredItemsView" ItemsSource="{Binding LineItems}"  VirtualizingStackPanel.IsVirtualizing="True" ScrollViewer.CanContentScroll="True" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto"&gt;
      &lt;ItemsControl.ItemsPanel&gt;
          &lt;ItemsPanelTemplate&gt;
              &lt;VirtualizingStackPanel /&gt;
          &lt;/ItemsPanelTemplate&gt;
      &lt;/ItemsControl.ItemsPanel&gt;
      &lt;ItemsControl.Template&gt;
          &lt;ControlTemplate&gt;
              &lt;ScrollViewer x:Name="ScrollViewerItems" Focusable="False"&gt;
                  &lt;ItemsPresenter SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" /&gt;
              &lt;/ScrollViewer&gt;
          &lt;/ControlTemplate&gt;
      &lt;/ItemsControl.Template&gt;
      &lt;ItemsControl.ItemTemplate&gt;
      ...
  </code></pre>