or


<telerik:RadGridView Name="gdTestRecords" DockPanel.Dock="Bottom" AutoGenerateColumns="False" ClipboardCopyMode ="All" MouseDoubleClick="gdTestRecords_MouseDoubleClick" SelectionMode="Extended" SelectionUnit="FullRow" MaxHeight="600" ScrollViewer.VerticalScrollBarVisibility="Visible">Telerik.Windows.Controls DelegateCommand
public class CreateAuthorizationViewModel : ViewModelBase { private Authorization authorization; private AuthorizationRepository authorizationRepository; private DelegateCommand saveAuthorizationCommand; public DelegateCommand SaveAuthorizationCommand { get { return saveAuthorizationCommand; } } public CreateAuthorizationViewModel() { InitializeCommand(); } private void InitializeCommand() { saveAuthorizationCommand = new DelegateCommand(SaveAuthorization, CanSaveAuthorization); } private void SaveAuthorization(object parameter) { authorizationRepository.Save(); } private bool CanSaveAuthorization(object parameter) {
//I would have validation logic here return true; } }