How to add a ICommand to an event from FrameworkElement?
===

How to add a ICommand to an event from FrameworkElement?

Specifically I want to do the following

   <ListView> // Button, Windows or whatever element
      <my:EventToCommand 
            Name="PreviewMouseLeftButton"
            Command="{Binding Path=MyCommand}"
            CommandParameter="{Binding ...}" /> // Value, Element, etc..
   </ListView>

I want to implement my own solution is for educational purposes and I don't wish to use any third-party library (MVVM Light, Prism, etc)