We’re developing an application in WPF, programming with low code-behind. We’re using a lot of MVVM and Binding resources. I’ve searched the web , trying to find a way to make a Double-Click on a grid without code-behind and we’ve found the AttachedCommandBehavior project (http://marlongrech.wordpress.com/2008/12/13/attachedcommandbehavior-v2-aka-acb/), but we're getting an unexpected issue:
When user click into the DataGrid, works ok, but the Mouse_Double_Click shouldn’t be fired when clicking on Columns Header or ScrollViewer. So, how we can fix it? We need than the AttachedCommandBehavior fires the event when user clicks only inside DataGrid’s area. I’ve downloaded your source, to see if he gets what object is being click, but i didn’t found it.
Best regards!