relaycommand
Prevent Save when Validation Errors occur on WPF DataGrid
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[详细]
2023-02-08 11:23 分类:问答Pass CommandParameter to Command in Silverlight using MVVM
I\'m just learning Silverlight and looking at MVVM and Commanding. Ok, so I have seen the basic RelayCommand implementation:[详细]
2023-01-31 12:46 分类:问答Using RelayCommand to send complex data to a MVVM model
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.[详细]
2023-01-29 10:27 分类:问答MVVM property with a linked complex class and CanExecute Relay Command not working
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)[详细]
2023-01-26 16:55 分类:问答MVVM light - Passing multiple parameters in RelayCommand from XAML
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.[详细]
2023-01-26 02:51 分类:问答Firing RelayCommand from CodeBehind bound to VM
I wonder if I can create a RelayCommand on my ViewModel like this: public RelayCommand<IList<VectorViewModel>> MyCommand { get; set; }[详细]
2023-01-24 01:02 分类:问答Why is param in this lambda expression?
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?[详细]
2023-01-08 08:17 分类:问答Using IsDirty with ICommands
I am trying to use an IsDirty flag to control CanExecute and Navigational controls during开发者_开发百科 an object edit.[详细]
2023-01-06 19:57 分类:问答Simplifying RelayCommand/DelegateCommand in WPF MVVM ViewModels
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[详细]
2023-01-04 11:07 分类:问答Programatic re-evaluation of MVVM command's "can execute" state
I\'m writing a WPF application using the MVVM pattern, based on the following article: WPF Apps With The Model-View-ViewModel Design Pattern[详细]
2023-01-02 05:56 分类:问答