2
Vote

TAB Workspace

description

Hi,
 
First of all thank you for the "kick start". I am using your code as the base for our WPF / CAB project.
 
I have come accross one issue so far. Te tab control does not close the tab in which i closed a smart part. See snippet below...

// Need to do some work here to remove the item from the tabs
 
  IWorkspace ws = WorkItem.Workspaces[Symplexity.Infrastructure.Interface.Constants.WorkspaceNames.MainTabbedWorkspace];
  if (ws != null)
  {
    ws.Close(view);
  }
 
Hope you can help
Regards
Jaco

comments

jacodv wrote Feb 20, 2007 at 2:48 PM

Hi,

Changed the OnClose in the TabWorkspace.cs file to...
    public void OnClose(UIElement smartPart)        {           PopulateTabItems();         TabItem tabItem = GetTabItemForSmartPart(smartPart);            _tabItems.Remove(tabItem);          _tabItems.Remove(smartPart);

        // Force the removal of the tab                 Items.Remove(tabItem);      }

wrote Apr 19, 2007 at 7:43 AM

bennedik wrote Apr 19, 2007 at 9:04 AM

I confirm that tabs do not close.The code change in the previous comment helps.Please include it in the next build.

wrote Feb 13, 2013 at 9:00 PM