RadControls version |
Q1 2010
|
.NET version |
.Net 3.5
|
Visual Studio version |
2008
|
programming language |
C#
|
browser support |
all browsers supported by RadControls
|
PROJECT DESCRIPTION
The attached code demonstrates how to create a MVVM app with a RadGridView with right click Context Menu functionality as well as the ability to double click a row and have it fire a command in the ViewModel.
A full write up of this using Prism as well as MVVM will be listed at
http://www.compositedevpatterns.com Go to the Training (Prism) category, Lesson 9.
In short, there is an assembly named WPFMVVMPrism which is based of the Cinch Framework but also includes some other code.
This demonstrates how you can right click on a row and display a Contextmenu and select a menuItem and have it pass the CurrentItem back to the ViewModel.
Also, it allows you to double click a row and have the row Item passed back to your viewModel.