I am using Livet, an MVVM infrastructure, where custom UserControls dispose their DataContext when they are Unloaded.
The problem is, as written in title, content UserControl's Unloaded event is fired when handling the container ToolWindow, which will currpt the UserControl on later use.
Is there any neat way to prevent this problem?
EDIT:
I know this post: http://www.actiprosoftware.com/community/thread/4638/why-unloadingloading-during-move#17116
It's been several years, and any newer work around is appreciated.
[Modified 9 years ago]