This topic introduces the ability to allow users to add a new tab button at runtime on the WinTabStrip and WinTab controls.
This topic contains the following sections:
Similar to the tabs found on contemporary browsers, this feature allows the user to add new tabs while the application is up and running. To configure this feature both the WinTabStrip and WinTab controls exposes the NewTabButtonLocation property.
The NewTabButtonLocation
property has three option settings:
The NewTabButtonLocation
property can be set using either the Visual Studio designer or in code.
An example of configuring the new tab button location in code behind.
In C#:
ultraTabControl1.NewTabButtonLocation = NewTabButtonLocation.AfterTabs;
In Visual Basic:
ultraTabControl1.NewTabButtonLocation = NewTabButtonLocation.AfterTabs
The new tab button supports AppStylist by adding a new role called, NewTabButton
to enable the styling of the new tab button’s appearance.
The following topic provides additional information related to this topic.