title: WP7 - Image Click Event?
body: <p>Is there a way to assign a click event to images?  I would like to assign events to the delete and search buttons inside of my listbox that displays my data.  Is there a way to do this using the image control or do I have to create a style in BLEND for a button?</p>
  
  <pre><code>        &lt;ListBox x:Name="lbPills" ItemsSource="{Binding pillItemsCollection}" SelectionChanged="lbPills_SelectionChanged"&gt;
              &lt;ListBox.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;StackPanel x:Name="DataTemplateStackPanel" Orientation="Horizontal"&gt;
                          &lt;TextBlock FontFamily="Segoe WP Semibold" FontWeight="Bold" FontSize="30" VerticalAlignment="Top" Margin="20,0"&gt;*&lt;/TextBlock&gt;
                          &lt;StackPanel&gt;
                              &lt;TextBlock x:Name="ItemText" Text="{Binding Name}" Margin="-2,-13,0,0" Style="{StaticResource PhoneTextExtraLargeStyle}"/&gt;
                          &lt;/StackPanel&gt;
  
                          &lt;Image Source="Images/delete.png" Margin="10,0"/&gt;
                          &lt;Image Source="Images/search.png" Margin="10,0"/&gt;
                      &lt;/StackPanel&gt;
                  &lt;/DataTemplate&gt;
              &lt;/ListBox.ItemTemplate&gt;
          &lt;/ListBox&gt;
  </code></pre>