Interactive States
Interactive States add dynamic visual feedback by adjusting the panel's appearance in response to user actions such as hovering, clicking, or disabling.
Overview
Property Details
Property Name
Description
Data Type
Default Value
Code Examples
Basic Interactive States Configuration
using System;
using System.Drawing;
using System.Windows.Forms;
using SiticoneNetFrameworkUI;
namespace DemoApp
{
public class MainForm : Form
{
public MainForm()
{
// Create an instance of SiticoneAdvancedPanel with interactive state styling enabled
var interactivePanel = new SiticoneAdvancedPanel
{
EnableStateStyles = true,
HoverBackColor = Color.LightBlue,
HoverBorderColor = Color.Blue,
ActiveBackColor = Color.LightGreen,
ActiveBorderColor = Color.Green,
DisabledBackColor = Color.Gray,
DisabledBorderColor = Color.DarkGray,
BorderColor = Color.Black,
BorderWidth = 2f,
TopLeftRadius = 10,
TopRightRadius = 10,
BottomLeftRadius = 10,
BottomRightRadius = 10,
Size = new Size(300, 200),
Location = new Point(50, 50),
BackColor = Color.White
};
// Optionally disable the panel to see the disabled state styling
// interactivePanel.Enabled = false;
Controls.Add(interactivePanel);
}
[STAThread]
public static void Main()
{
Application.EnableVisualStyles();
Application.Run(new MainForm());
}
}
}Dynamic State Changes
Key Points
Aspect
Details
Best Practices
Recommendation
Explanation
Common Pitfalls
Pitfall
How to Avoid It
Usage Scenarios
Scenario
Description
Review
Review Point
Key Consideration
Summary
Additional Sections
Troubleshooting
Issue
Possible Cause
Suggested Solution
Integration Checklist
Step
Description
Last updated