I have a GridView where I want to detect a doubleclick event on the items in the list, i do it as follows:
For those here that are using a framework like Prism where the main usercontrol containing the Listview is a View (not a window) that is bound to a viewmodel.
The answer of dlf is the best with these small tweaks:
{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}},
Path=DataContext.SayHiCommand}
And in the special behavior attached property you change the ICommand cast to a DelegateCommand cast.
Works like a charm, Thank you very much.