ViewModel inicialized when leaving this view

Topics: Issues / bugs
Sep 24, 2012 at 12:18 PM

When i try to navigate from current view to new, current viewmodel contructor is called right before opening new view i use Catel 3,2

this is not my code problem i just use this command 

                   RegionManager.Regions[strContentRegion].NavigationService.RequestNavigate(viewName);

actually i have tried to disable current view, but it do same thing, call constructor of closing viewmodel.

 

how can i disable calling constructor, because it's very bad and affect performance.

Coordinator
Sep 24, 2012 at 12:32 PM

I think I have fixed this issue yesterday. If you can provide a reproducable test case, then I can check if it is really fixed.