How to bind a Command to double-click on a row in DataGrid
问题 I have developed a WPF UserControl that is intended to be used as a pick list as follows: A DataGrid bound to a CollectionView of entities (e.g. of Employees) A TextBox above the DataGrid that can be used to filter items displayed in the DataGrid. I want to expose a Command that will be executed when the user double-clicks on a row in the DataGrid. The container can then react to this by doing something with the SelectedItem in the DataGrid. So far I've tried to handle the double-click as