title: Find all controls inside WPF Listbox
body: <p>I want to access all buttons inside the WPF Listbox, here is my xaml code.</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;ScrollViewer x:Name="myScrollViewer" HorizontalScrollBarVisibility="Disabled" MouseDown="myStackPanel_MouseDown"  MouseUp="myScrollViewer_MouseMove"  VerticalScrollBarVisibility="Hidden" Height="435" BorderBrush="{x:Null}" Width="250" Margin="0,-4,-4,-4" ScrollChanged="scrollerVideoCategory_ScrollChanged"&gt;
          &lt;StackPanel Orientation="Vertical" Name="StackPanleEmployee" Margin="40,0,0,0" MouseDown="myStackPanel_MouseDown"  MouseUp="myScrollViewer_MouseMove"   Loaded="StackPanleVideoCategory_Loaded" &gt;
              &lt;ListBox x:Name="ListBoxEmployeVideoType" MouseDown="myStackPanel_MouseDown"  MouseUp="myScrollViewer_MouseMove"  BorderThickness="0,1,0,0" BorderBrush="#E2E2E2"&gt;
                  &lt;ListBox.ItemTemplate&gt;
                      &lt;DataTemplate&gt;
                          &lt;StackPanel Orientation="Vertical" Width="200" Name="myStackPanel" MouseDown="myStackPanel_MouseDown"  MouseUp="myScrollViewer_MouseMove" &gt;
                              &lt;Button  VerticalAlignment="Center" Style="{StaticResource ButtonVideoTabItemDefault}"   MouseUp="b_MouseMove"  Tag="{Binding Path}" Content="{Binding Name}" Name="btnSubCategory"  Click="btnVideoCategorySelection_Click"&gt;&lt;/Button&gt;
                              &lt;Separator Background="#E2E2E2" Margin="0"/&gt;
                          &lt;/StackPanel&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/ListBox.ItemTemplate&gt;
              &lt;/ListBox&gt;
          &lt;/StackPanel&gt;
      &lt;/ScrollViewer&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>anyone have idea?</p>