Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
14517
Execute Command In ViewModel on Double Click
posted

Hello,

In the following blog post

http://blogs.infragistics.com/blogs/devin_rader/archive/2011/06/01/using-behaviors-to-synchronize-selected-items-of-infragistics-silverlight-controls-to-a-viewmodel.aspx

it describes how to use behaviors to sync up properties in your ViewModel . This method can similarly be used in both Silverlight and WPF to add binding for command processing.

For example, by creating an ICommand Dependency Property in your Behavior you can then create a binding between a command in your ViewModel and a control’s event.

I have attached a sample demonstrating this using Relay Commands and Behavior to execute a command in the ViewModel on the Double Click event of the XamDataGrid.

Sincerely,

Valerie

Developer Support Engineer

Infragistics

www.infragistics.com/support

SampleGrid.zip