MVVM questions with Josh Smith as an example

I worked on an article by Josh Smith on MVVM at http://msdn.microsoft.com/en-us/magazine/dd419663.aspx . Each section makes sense to me, but it's hard for me to compromise all of this together as a whole. I have 2 questions that will help a ton.

  • If I were to create an ap pattern, what would be the logical order of its assembly?

  • For the command structure, what happens, in what order, when does ap execute?

I am also wondering if I should divide this into 2 questions?

+3
source share
3 answers
  • Yacoder . , , . - UX, Expression Blend, . , , ViewModels Unit.

  • Smith App.xaml.cs. MainWindowViewModel MainWIndow.

MainWindow.xaml - , . . ; . MainWindowViewModel.

, , , , , , . , "" 51 MainWindowViewModel, CreateCommands() .

RelayCommand, , , " " "". MainWindowViewModel, .

, - . , CommandViewModels.

XAML, 41 MainWindow.xaml. HeaderedContentControl Commands CommandsTemplate MainWindowResources.xaml( 93 ). HyperLink Command, Command CommandModel.

"" . CustomerView.xaml, 117. CustomerViewModel SaveCommand 196. RelayCommand, CustomerViewModel. CustomerViewModel, . RelayCommand CustomerViewModels, SaveCommand. RelayCommand , , . Save CustomerViewModel .

, .

+3
  • , . UI . MVVM, .
  • , , - , , , , . , /, . MVVM WPF.
+2

Source: https://habr.com/ru/post/1723604/


All Articles