We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

I am getting the following error in TabControlAdv, when I compile my solution

 

'Syncfusion.Windows.Forms.Tools.TabControlAdv' does not contain a definition for 'NavigationControl'

The NavigationControl property has been changed as TabPrimitives for v.4.4. TabPrimitives provides more flexibility and it allows users to add any number of buttons in the TabPanel.

You can comment out the NavigationControl related code in the designer generated code and compile the solution to make it work properly

To work with TabPrimitives

TabPrimitives can be made visible by setting TabPrimitivesHost.Visible property to true.

TabPrimitivesHost

Click on the TabPrimitivesCollection to bring up a collection editor and add the TabPrimitives as shown below.

CollectionEditor

To add the TabPrimitives programatically,

C#

using Syncfusion.Windows.Forms.Tools;

this.tabControlAdv1.TabPrimitivesHost.Visible = true;

this.tabControlAdv1.TabPrimitivesHost.TabPrimitives.Add(new TabPrimitive(TabPrimitiveType.FirstTab, null, Color.Empty, true, 1, "TabPrimitive0"));

this.tabControlAdv1.TabPrimitivesHost.TabPrimitives.Add(new TabPrimitive(TabPrimitiveType.PreviousPage, null, Color.Empty, true, 1, "TabPrimitive1"));

this.tabControlAdv1.TabPrimitivesHost.TabPrimitives.Add(new TabPrimitive(TabPrimitiveType.PreviousTab, null, Color.Empty, true, 1, "TabPrimitive2"));

this.tabControlAdv1.TabPrimitivesHost.TabPrimitives.Add(new TabPrimitive(TabPrimitiveType.NextTab, null, Color.Empty, true, 1, "TabPrimitive3"));

this.tabControlAdv1.TabPrimitivesHost.TabPrimitives.Add(new TabPrimitive(TabPrimitiveType.NextPage, null, Color.Empty, true, 1, "TabPrimitive4"));

this.tabControlAdv1.TabPrimitivesHost.TabPrimitives.Add(new TabPrimitive(TabPrimitiveType.NextPage, null, Color.Empty, true, 1, "TabPrimitive5"));

this.tabControlAdv1.TabPrimitivesHost.TabPrimitives.Add(new TabPrimitive(TabPrimitiveType.Close, null, Color.Empty, true, 1, "TabPrimitive6"));

TabPrimitivesDuringRunTime

C#

// To generate click events for custom TabPrimitiveType

private void tabControlAdv1_TabPrimitiveClick (object sender, Syncfusion.Windows.Forms.Tools.TabPrimitiveClickEventArgs e)

{

 if (e.TabPrimitive.Name == "TabPrimitive7")

 {

  // Add the code here..

 }

}

TabPrimitives also contains a DropDown TabPrimitiveType, which will display a popupmenu listing the tabPages.

TabPrimitive_DropDown

Article ID: Published Date: Last Revised Date: Platform: Control:
1570 04/30/2011 07/10/2014 Windows Forms DockingManager
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.