Version

Animations

WebTab™ supports animation when closing and opening a tab, providing your end users with rich UI. The animation effect when opening a new tab shows a gradual increase in tab item size and opacity. This depends on the animation duration, which can be set by AddNewTabItem object’s AnimationDuration property.

Note
Note:

In order to provide your end users an option to open a new tab, you must enable AddNewTabItem object’s Enabled property to True.

In HTML:

<AddNewTabItem AnimationDuration="1500" Enabled="True">

In Visual Basic:

WebTab1.AddNewTabItem.Enabled = True
WebTab1.AddNewTabItem.AnimationDuration = 1500

In C#:

WebTab1.AddNewTabItem.Enabled = true;
WebTab1.AddNewTabItem.AnimationDuration = 1500;

The animation effect when closing a tab shows a gradual decrease in tab item size and opacity. This depends on the animation duration, which can be set by CloseButton object’s AnimationDuration property.

Note
Note:

In order to provide your end users with an option to close a tab, you must enable CloseButton object’s Enabled property to True or set the TabItem object’s hidden property to True.

In HTML:

<CloseButton AnimationDuration="1500" Enabled="True" />

In Visual Basic:

WebTab1.CloseButton.Enabled = True
WebTab1.CloseButton.AnimationDuration = 1500

In C#:

WebTab1.CloseButton.Enabled = true;
WebTab1.CloseButton.AnimationDuration = 1500;
Note
Note:

The animation duration is set in milliseconds ranging from 0 to 1500, however values less than 30 are equal to zero.