I have made new shell layout contained freeware DockPanelWorkspace
But I am getting an exception when try to close and then reopen the same page.
seems that View (SmartPart) were disposed and removed from its WorkItem
when I closed tab. So when I try to activate this View
(SmartPart) again the PageController can not find this View and
raises exception ("Cannot access a disposed object. Object name: '...'.
"). Or sometimes SmartPart removed from Workspace and "The smartpart is not present in the workspace
" error raised when try to activate View second time.BTW
I found the same problem with ModalWindowsWorkspace
("The smartpart is not present in the workspace
" error) on reactivation.
Any suggestions how to solve this problem?
For now I suppose one solution for this:
Find the way to dispose PageController when its MainView closed in DockWorkspace or in ModalWindowsWorkspace. But I dont know how implement this.
For a while I have disabled tabs closing so that tab once appeared remain alive till the end of user session. But IMHO it is not rational..
Edited by vecs - 27-Dec-2007 at 1:33am