title: Silverlight: Give focus to a parent ListBox item when clicking a child button
body: <p>I have the following XAML code, having removed the styling and formatting tags:</p>
  
  <pre><code>&lt;ListBox Name="ManageImageList"&gt;
      &lt;ListBox.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;StackPanel&gt;
                  &lt;Image Name="ManageImageThumbnail" Source="{Binding ImageName}" /&gt;
                  &lt;StackPanel Orientation="Vertical" &gt;
                      &lt;TextBlock Name="ManageImageUrl" Text="{Binding ImageName}" /&gt;
                      &lt;TextBlock Name="ManageImageComment" Text="{Binding Comment}" /&gt;
                  &lt;/StackPanel&gt;
                  &lt;Button Name="ManageImageDelete" ClickMode="Press" Click="ManageImageDelete_Click" Content="X" /&gt;
             &lt;/StackPanel&gt;
          &lt;/DataTemplate&gt;
     &lt;/ListBox.ItemTemplate&gt;
  &lt;/ListBox&gt;
  </code></pre>
  
  <p>The ListBox is bound to an ObservableCollection. I would like to give focus to the parent ListBox item when the button is clicked, making it the SelectedItem of the ListBox. How do I do this?</p>