ViewModels are not disposed

Nov 4, 2011 at 9:27 AM

Hi,

when accessing the settings page and go back the viewmodel of the settingspage should be disposed but it is not.

The result of this is, that when deactivating the application the Deactivated event is send to the viewmodel of each page including settings page.

So when I access the settings page seven times I will get eight deactivate events, one for the mainpage and 7 for the settings pages.

How can I ensure that the viewmodel is disposed when I leave the page?

Thx Frank