public void ReplaceView(int position, IShellDocumentViewItem shellView) { var newView = (GtkShellDocumentViewItem)shellView; newView.Show(); currentContainer.ReplaceView(position, newView); tabstrip.ReplaceTab(position, CreateTab(newView)); }
public void ReplaceView(int position, IShellDocumentViewItem shellView) { var oldView = currentContainer.GetChild(position); var newView = (GtkShellDocumentViewItem)shellView; newView.ParentContainer = this; newView.Show(); currentContainer.ReplaceView(position, newView); tabstrip.ReplaceTab(position, CreateTab(newView)); UpdateTabstrip(); oldView.ParentContainer = null; }
public void ReplaceView(int position, GtkShellDocumentViewItem view) { tabstrip.ReplaceTab(position, CreateTab(view)); ShowActiveContent(); }