title: WPF MVVM : Commands are easy. How to Connect View and ViewModel with RoutedEvent
body: <p>Suppose I have a view implemented as a DataTempate inside a resource Dictionary.
  And I have a corresponding ViewModel.
  Binding Commands are easy. But what if my View contains a control such as a ListBox, and I need to Publish an application wide event (Using Prism's Event Aggreagtor) based on the Item being Changed on the List.</p>
  
  <p>if ListBox supports a command I could just bind it to a command in the ViewModel and publish the event. But Listbox doesn't allow such an option.
  How do I bridge this?</p>
  
  <p>EDIT:
  Many great answers.</p>
  
  <p>Take a look at this link  <a href="http://blogs.microsoft.co.il/blogs/tomershamam/archive/2009/04/14/wpf-commands-everywhere.aspx" rel="noreferrer">http://blogs.microsoft.co.il/blogs/tomershamam/archive/2009/04/14/wpf-commands-everywhere.aspx</a></p>
  
  <p>Thanks</p>
  
  <p>Ariel</p>