In this step you will set the animation of the C1LinearGauge control. The following steps assume you have already added a C1LinearGauge control to the page.
In Design View
Complete the following steps to set the animation of the C1LinearGauge control in the Design View:
In Source View
To set the animation of the C1LinearGauge control in the Source View, place your mouse between the <cc1:C1LinearGauge></cc1:C1LinearGauge> tags, and add the following markup:
To write code in Source View
<Animation Duration="1000" Easing ="EaseOutBounce" Enabled ="true"/>
Set the “Duration” and “Easing” as desired to set the Animation of the control. Set “Enabled” as True to enable the Animation of the control.
In Code
To set the Animation of the control, add the following code to the Page_Load event:
To write the code in Visual Basic:
Visual Basic |
Copy Code
|
---|---|
' to set the Minimum value of the C1LinearGauge ' to set the Maximum value of the C1LinearGauge ' to set the Value of the C1LinearGauge ' to set the Duration of the Animation of the C1LinearGauge ' to set the Easing of the Animation of the C1LinearGauge ' to Enable the Animation in the C1LinearGauge |
To write the code in C#:
C# |
Copy Code
|
---|---|
// to set the Minimum value of the C1LinearGauge // to set the Maximum value of the C1LinearGauge // to set the Value of the C1LinearGauge // to set the Duration of the Animation of the C1LinearGauge // to set the Easing of the Animation of the C1LinearGauge // to Enable the Animation in the C1LinearGauge |