Interaction Behavior & Events
This feature empowers developers to define how the control responds to user interactions such as mouse hover, clicks, and context menu requests, and provides events to integrate custom logic, etc.
Overview
Property & Event Details
Property / Event
Description
Default Value
Notes
Code Examples
Example 1: Enabling Hover Animation
// Create a group box with hover animation enabled.
var groupBoxHover = new SiticoneGroupBox
{
GroupTitle = "Hover Interaction",
EnableHoverAnimation = true, // Smooth color transitions on mouse hover.
CanHover = true // Allow the control to respond to hover events.
};
this.Controls.Add(groupBoxHover);
groupBoxHover.Location = new Point(10, 10);
groupBoxHover.Size = new Size(300, 180);Example 2: Handling the TitleClicked Event
Example 3: Custom Context Menu with ContextMenuOpening Event
Key Points
Point
Details
Best Practices
Practice
Recommendation
Common Pitfalls
Pitfall
Avoidance Strategy
Usage Scenarios
Scenario
Description
Sample Configuration
Review
Summary
Additional Tips
Tip
Explanation
Last updated