Hi,
we are using this MVVM double click implementation to open the current seleted item. So the problem is now that when the user is performing unintentionally a double cklick on a colum header or on an another area of the xamdatagrid control the selected item still opens. Is it possible to suppress this behavior?
Best regards,
Hase
Hello,
Thank you for your post.
I have been looking into the functionality you are trying to achieve and If I understand correctly your scenario you want to execute the logic from the mentioned blog post only when the user click on the cells.
If my assumption is correct what I can suggest is to modify the logic to work for CellValuePresenter instead of XamDataPresenter, so you can apply these attached properties by using a style for CellValuePresenter, for example defined in the Resources of your applicaiton.
I have created simple sample application based on your scenario in order to show you how you can implement my approach and achieve your goal.
If you need any additional assistance on this matter, or if I have misunderstood you in any way please let me know.
Hello Zhivko ,
this is exactly what we are looking for. Thank you very much for the quick support.
Best regards
Thank you for your feedback.
I am really glad, I could help out. Please do not hesitate to let me know if you require any further assistance on the matter.