Feedback and Animation
A feature that offers multiple forms of user feedback—such as beeps, shake effects, ripple animations, and value change animations—to enhance the control’s interactivity and user experience.
Overview
Property/Behavior
Description
Data Type/Mechanism
Default Value / Behavior
Code Examples and Integration
using System;
using System.Windows.Forms;
using SiticoneNetFrameworkUI;
using SiticoneNetFrameworkUI.Helpers.Enum;
// Create an instance of the control.
var numericUpDown = new SiticoneUpDown
{
Minimum = 0M,
Maximum = 100M,
Value = 50M,
Increment = 5M,
DecimalPlaces = 0,
InputType = InputType.WholeNumbers,
EnableDirectInput = true,
// Feedback & Animation settings
AnimateValueChanges = true, // Enable animated transitions for value changes.
CanBeep = true, // Allow beep sound on invalid operations (e.g., read-only operations).
CanShake = true, // Enable shake animation for invalid operations.
InitialRepeatDelay = 500, // Delay before auto-repeat starts.
RepeatSpeed = 50 // Speed of auto-repeat updates.
};
// Optionally, subscribe to events to handle changes.
numericUpDown.ValueChanged += (sender, e) =>
{
Console.WriteLine("New Value: " + numericUpDown.Value);
};
// Add the control to your form.
this.Controls.Add(numericUpDown);Key Points
Key Point
Details
Best Practices
Recommendation
Explanation
Common Pitfalls
Pitfall
How to Avoid It
Usage Scenarios
Scenario
Description
Example Use Case
Review
Summary
Additional Sections
Tip
Explanation
Last updated