Mvvm-light: Should we combine the cleaning methods in the locator?

when creating a new ViewModel model in the locator class using a fragment that creates a cleaning method, but there is already one available from Main, therefore, an error ....

Should we combine them all?

Or we should rename this method to "Name" of viewmodel, for example.

I'm a little confused here

Another question I would like to ask relates to naming conventions.

I tried to execute the naming convention used with "MAIN" ...

hence, I have CreateLogin, ClearLogin, Login (not a static property for binding), etc. etc.

It would not be better to use CreateLoginViewModel, ClearLoginViewModel, etc.

Just curious

thank

+3
1

( ViewModelLocator ) , V4.

, , , . , ViewModelLocator.Cleanup() (, , ..). , . , , .

, CreateMain, ClearMain .. . , , , , ViewModelLocator (V4).

, . "ViewModel", . , , , V4. ;) ( , , )

Cheers, Laurent

+4

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


All Articles