Commands in MVVM

I saw tutorials in which people create methods like CanExecute in their code. I suppose they do this to help the reader understand how it all works. When I look at Command and ICommand, it brings me to the ICommand class in MSDN, which is used for Windows Store applications. Isn't there a Command class for WPF?

+5
source share
1 answer

Native implementation ICommandin WPF RoutedCommand(and its sibling RoutedUICommand). RoutedCommandworks as follows:

Execute CanExecute RoutedCommand , ICommand, , , , CommandBinding. , CommandBinding, .

, , , MVVM.

, CanExecute ( ICommand), , DelegateCommand RelayCommand, "" CanExecute/Execute , " "; , viewmodel, .

MVVM ( - Prism MVVM Light ), ( , ), / , .

" WPF, MVVM".

+8

All Articles