[]
By default, the animation for the expand/collapse behavior of the C1TopicBar control is set to System, meaning that the behavior follows the settings of a user's operating system. If you'd rather have control over this, you can turn the animation on by setting to Animation property to On, or you can turn the animation off by setting the Animation to Off.
Complete the following steps:
Complete the following steps:
Navigate to the Toolbox and double-click the C1TopicBar icon. The C1TopicBar control is added to the form. Observe that one page, named Page 1, appears on the control by default. If you'd like to add more pages to the control, see Adding Topic Pages to the TopicBar.
Double-click the empty portion of the form to open Code view. Notice that a Form_Load event handler has been added to Code view.
Import the following namespace into the project:
To write code in Visual Basic
Imports C1.Win.C1Command
To write code in C#
using C1.Win.C1Command;
Complete ONE of the following:
To turn the animation on, add the following code to the Form_Load event
To write code in Visual Basic
c1TopicBar1.Animation = C1AnimationEnum.On
To write code in C#
c1TopicBar1.Animation = C1AnimationEnum.On
To turn the animation off, add the following code to the Form_Load event
To write code in Visual Basic
c1TopicBar1.Animation = C1AnimationEnum.Off
To write code in C#
c1TopicBar1.Animation = C1AnimationEnum.Off;
Press F5 to build the project.