Selection Indicator
Selection Indicator provides a visual cue on the left side of the button to denote its active or selected state.
Overview
Properties Table
Property
Type
Default Value
Description
Code Examples
Basic Integration
using System;
using System.Drawing;
using System.Windows.Forms;
using SiticoneNetFrameworkUI;
public class SelectionIndicatorDemoForm : Form
{
public SelectionIndicatorDemoForm()
{
// Create a new instance of SiticoneDashboardButton
SiticoneDashboardButton dashboardButton = new SiticoneDashboardButton
{
Text = "Home",
Size = new Size(250, 45),
Location = new Point(50, 50),
// Ensure the left-side indicator is visible
ShowLeftIndicator = true,
// Set a custom indicator color and gradient color
IndicatorColor = Color.FromArgb(0, 120, 200),
IndicatorGradientColor = Color.FromArgb(0, 180, 240),
// Set the indicator width (0-8)
IndicatorWidth = 4
};
// Mark the button as selected to activate the indicator
dashboardButton.IsSelected = true;
// Add the button to the form
Controls.Add(dashboardButton);
}
[STAThread]
public static void Main()
{
Application.EnableVisualStyles();
Application.Run(new SelectionIndicatorDemoForm());
}
}Advanced Customization
Key Points
Aspect
Details
Best Practices
Practice
Recommendation
Common Pitfalls
Pitfall
How to Avoid
Usage Scenarios
Scenario
Example Use Case
Review
Summary
Additional Resources
Resource
Description
Link/Reference
Last updated