I have defined the following DataTemplate for ListBox items in an external resource dictionary:
DataTemplate
ListBox
You can use EventSetter in the style you are setting the template with:
EventSetter