Animation Control
Animation Control provides animated transitions between progress values using configurable timing, easing functions, and state notifications.
Overview
API Reference
Feature Element
Type
Default Value
Description
Code Examples
Example 1: Basic Animation Configuration
// Create an instance of the progress bar control.
var progressBar = new SiticoneHBarsProgress();
// Set the animation duration to 500 milliseconds.
progressBar.AnimationDuration = 500;
// Set the easing function to EaseOutQuad.
progressBar.AnimationEasingFunc = SiticoneHBarsProgress.AnimationEasing.EaseOutQuad;
// Enable animation.
progressBar.AnimationEnabled = true;
// Subscribe to the AnimationCompleted event.
progressBar.AnimationCompleted += (sender, args) =>
{
MessageBox.Show("Animation completed!");
};
// Subscribe to the AnimationStateChanged event.
progressBar.AnimationStateChanged += (sender, e) =>
{
Console.WriteLine($"IsAnimating: {e.IsAnimating}");
};
// Change the progress value to trigger animation.
progressBar.Value = 80;Example 2: Stopping an Ongoing Animation
Example 3: Dynamic Animation Settings Based on User Input
Key Points
Aspect
Details
Best Practices
Practice
Description
Common Pitfalls
Pitfall
Cause/Resolution
Usage Scenarios
Scenario
Implementation Details
Review
Category
Review Comments
Summary
Additional Notes
Note
Details
Last updated