Ok, I know what I want to do. But I have no idea on how to do it.
The following is built into the page controllers ShowPage:
if ( controller == null ) {
controller = MakeNewPage<T>(pParentWorkItem, pPageWorkItemId);
ShowPage(controller, pPageWorkspace);
} else {
controller.MainWorkspace.Activate(controller.MainView);
}
Meaning that if the controller doesn't exist then add one. This will do the refresh of the content.
Now, in the TabbedShellLayout I can hide a page. I can also get the ActiveSmartPart and the current IPageView, to keep it generic.
I want to dispose of that PageView, that way when the user clicks on the nav item again it will create the page again, but I have no idea how to do that.
So far, I have been successful in hiding the tab, remove it from the WorkItem. But, the page will not load again when the user clicks on the nav item.
HELP