There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Caliburn.Micro subscribes multiple times to PropertyChanged
I have the problem that CM seems to subscribe twice to PropertyChanged. Or, depending on the POV / expected behavior: It doesn't
unsubscribe when the item is deactivated.
The scenario is the following:
I have a view model (
OuterViewModel in the sample) that has a property (
CurrentInnerViewModel) of another view model (
Outer has a button. A click on the button cycles through all inner view models it knows, one at a time. When there are no more, it activates the next screen (
Next has a button that simply activates the previous screen.
Now, clicking in fast succession on the "Show next" and "Show previous" buttons with an attached debugger shows that multiple views get created for a single raised PropertyChanged event (see Output pane).