Horev Ivan
Horev Ivan

Reputation: 268

Naming MVVM classes

How do you name the classes (Model, View, ViewModel) using the MVVM pattern in your projects?

Upvotes: 0

Views: 101

Answers (1)

Berryl
Berryl

Reputation: 12833

For the view I append 'View' to the Model, as in "PersonView".

Similarly for the view model I append 'Vm' to get "PersonVm".

Of course the The Model name has everything to do with the domain and nothing to do with MVVM.

Cheers,
Berryl

Upvotes: 1

Related Questions