Currently, I have a DataGrid which is bound to some data in my ViewModel. I have ValidationRules set up for the Rows, and the Columns. What I would like to do is prevent the user from saving the file
I\'m just learning Silverlight and looking at MVVM and Commanding. Ok, so I have seen the basic RelayCommand implementation:
I have a complex query interface that I need to be passed on via a RelayCommand to my Model. This consists of some comboboxes, checkboxes and text inputs.
I have a entity class in a C# library class and linked to Silverlight class library (entities must be in C# class because of legacy compatiblity with other systems)
I have more than one PasswordBox on my view and I want to pass all their SecureStrings to my view model when I click a button.
I wonder if I can create a RelayCommand on my ViewModel like this: public RelayCommand<IList<VectorViewModel>> MyCommand { get; set; }
The MSDN magazine article by Josh Smith on MVVM contains a lambda expression I don\'t completely understand. What is the purpose of param in this code?
I am trying to use an IsDirty flag to control CanExecute and Navigational controls during开发者_开发百科 an object edit.
If you\'re doing MVVM 开发者_Go百科and using commands, you\'ll often see ICommand properties on the ViewModel that are backed by private RelayCommand or DelegateCommand fields, like this example from
I\'m writing a WPF application using the MVVM pattern, based on the following article: WPF Apps With The Model-View-ViewModel Design Pattern