Hi,
In using the ANTS memory profiler I realized that the TransitionPresenter's DataContext in a ToolWindowContainer is hanging on to a reference of my view and I'd like to remove it when the window is closed. How can I do this? I don't see a way to get to the TransitionPresenter.
You can see a screenshot of the profiler's Instance Retention Graph here: http://www.flickr.com/photos/32462634@N04/6185730893/in/photostream
A little more background on what I'm doing....I have a DockSite that has many ToolWindows. When a ToolWindow is closed I am disposing the view and viewmodel then setting the content on the ToolWindow to null and hanging on to the name of the window in a local list. I'm doing this because I want to keep the window's last know location in case the user re-opens that specific window during the same session. When this happens I can grab the ToolWindow and set it's content to a new view.
Thanks,
Josh
In using the ANTS memory profiler I realized that the TransitionPresenter's DataContext in a ToolWindowContainer is hanging on to a reference of my view and I'd like to remove it when the window is closed. How can I do this? I don't see a way to get to the TransitionPresenter.
You can see a screenshot of the profiler's Instance Retention Graph here: http://www.flickr.com/photos/32462634@N04/6185730893/in/photostream
A little more background on what I'm doing....I have a DockSite that has many ToolWindows. When a ToolWindow is closed I am disposing the view and viewmodel then setting the content on the ToolWindow to null and hanging on to the name of the window in a local list. I'm doing this because I want to keep the window's last know location in case the user re-opens that specific window during the same session. When this happens I can grab the ToolWindow and set it's content to a new view.
Thanks,
Josh