Selection Indicator
A feature that visually confirms a chip's selected state by displaying a customizable checkmark, reinforcing user interactions and feedback.
Overview
Key Points
Aspect
Details
Best Practices
Practice
Explanation
Code Example: Customizing the Selection Indicator
// Create a chip with a customized selection indicator (checkmark)
var chipWithSelection = new SiticoneGroupChip
{
Text = "Selectable Chip",
// Enable the checkmark to be shown when selected
ShowCheckmark = true,
// Customize the appearance of the checkmark
CheckmarkColor = Color.Green,
CheckmarkThickness = 2.5f,
CheckmarkScale = 0.7f, // Scale between 0.2 and 1.0
CheckmarkPadding = new Padding(8, 8, 0, 8),
CheckmarkWidth = 24
};
// Toggle the selection state on click (if EnableSelection is true)
chipWithSelection.SelectionChanged += (sender, e) =>
{
Console.WriteLine("Chip selection state changed to: " + chipWithSelection.IsSelected);
};
this.Controls.Add(chipWithSelection);Common Pitfalls
Pitfall
Explanation
Code Example: Avoiding Common Pitfalls
Usage Scenarios
Scenario
Description
Code Example: Filter Chips with Selection Indicator
Real Life Usage Scenarios
Real Life Scenario
Example
Code Example: E-commerce Product Filter Chip
Troubleshooting Tips
Tip
Details
Review
Review Aspect
Comments
Summary
Additional Sections
Integration Checklist
Item
Check
FAQ
Question
Answer
Last updated