Now when we navigate to some view that have viewmodel, in OnInitializedAsync method of the view in code-behind we call OnNavigatedTo method of the viewmodel so viewmodel can do all its initiall jobs(fill collection, calculate some properties, etc).
I am not sure if it is good approach. Should be discussed!
Maybe process of starting viewmodel should be trigered without our code?!
Now when we navigate to some view that have viewmodel, in
OnInitializedAsync
method of the view in code-behind we callOnNavigatedTo
method of the viewmodel so viewmodel can do all its initiall jobs(fill collection, calculate some properties, etc). I am not sure if it is good approach. Should be discussed!Maybe process of starting viewmodel should be trigered without our code?!