How to obey the MVVM pattern in thi scenario

Sep 4, 2009 at 10:38 AM

It is easy to binding a command to a button click command property when using MVVM pattern  .

But how to binding the command to a double-click event on datagrid control ?

Does someone know ?


Sep 4, 2009 at 12:49 PM

Use a behavior for that.

Sep 4, 2009 at 9:29 PM

wekempf, thanks for posting the link.  ms44cn, please feel free to follow up with us if you have any further questions.


Saied K.

Sep 7, 2009 at 7:41 AM

good example .

Thanks .

I have another problem  when implement the MVVM pattern .

When I need do some UI validations ,where I can put my validation code ?

For example :

I have textbox in the UI , and I wanna this textbox should't be empty and can't  include digital   . How can I check it under MVVM pattern  ?




Sep 8, 2009 at 3:58 AM

No one encounter such problem  ?


Sep 8, 2009 at 11:11 AM

Implement IDataErrorInfo on the ViewModel, and you're done, basically.

Sep 11, 2009 at 9:21 AM

Take a look here....