I¡¯m trying to implement doubleclick in a ListView, but I can¡¯t understand how to figure out if the double click in the ListView was on a ListViewItem, the scrollbar or the headers

I¡¯m only really interested of the doubleclicks of items in the list, not the scrollbar¡­

I have tried both

listView.AddHandler(ListViewItem.MouseDoubleClickEvent, new RoutedEventHandler(ListViewItemMouseDoubleClick));


listView.MouseDoubleClick += new MouseButtonEventHandler(OnListViewMouseDoubleClick);

Any suggestions

EDIT: Found a solution: PostID=1874378&SiteID=1

Re: Windows Presentation Foundation (WPF) ListView, how to know what was doubleclicked