开发者

Single click or mouseDoubleClick event Datagrid using a MVVM model.Is it possible?

开发者 https://www.devze.com 2023-01-06 10:19 出处:网络
I am using VS 2010 and a datagrid. I need the ability to either single click or double click and process the action in my ViewModel.

I am using VS 2010 and a datagrid. I need the ability to either single click or double click and process the action in my ViewModel.

Is this possible? I could not find an example using MVVM.Can you provide 开发者_如何学Cone,a link or a snippet etc..

thanks a lot


You can use an attached behavior to map a command to the event. See Marlon Grech's blog for an example.


You may want to check this out, and the given links in the post: http://forums.silverlight.net/forums/t/188159.aspx. Hopefully this is along the lines of your implementation.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号