Is there a friendly and fast way of bind a command to a WPF DataGrid double click event?
I’ve used the search box, but all the results I’ve found had a lot of lines of code and weren’t that practical to use.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is a common desire for implementing Model-View-ViewModel (MVVM) in general, and not easily available out of the box. I haven’t used it, but from what I’ve seen, using the MVVM Light Toolkit will allow you to do things like this.
Or, if you don’t want that, there are other schemes as well: WPF: How to bind a command to the ListBoxItem using MVVM?
But, generally speaking, there’s no quick and easy ways to do this.