📚
Siticone Docs
HomePricing PlansSuggest a FeatureMy LicenseChangelogDownloads
  • Dear Developer!
  • Quick Start Guide
    • Install Siticone UI Library
    • Register for 1 month free trial
    • Register for Premium License
  • Net Framework | Net Core UI
    • Input Controls
      • Siticone TextBox
        • Appearance and Styling
        • Text and Placeholder Config.
        • Input, Validation and Read-Only Behavior
        • User Interaction & Shortcuts
        • System Theme Integration
        • Events and Callbacks
      • Siticone TextArea
        • Always Multiline
        • Custom Font
        • Vertical Scrollbars
        • Border-less Design
        • Dynamic Resizing
        • Margin Spacing
      • Siticone CheckBox
        • Visual Style
        • State Management
        • Interaction Effects
        • Container Layout
        • Container Style
        • Container States
        • State Colors
        • Border Configuration
        • Layout
        • Focus Appearance
        • Text Property
        • Trigger Feedback
      • Siticone RadialButton
        • Appearance
        • Behavior
        • Layout Management
        • User Assistance
        • Animation Timing
        • Events and Callbacks
      • Siticone ToggleButton
        • Toggle Functionality
        • Appearance and Text
        • Border Settings
        • Corner Radius
        • Animation Settings
        • Ripple & Interaction Effects
        • Read-only and Feedback
        • Sizing and Layout
        • Context Menu Integration
        • State Persistence
        • Accessibility
        • Events and Callback
      • Siticone ToggleSwitch
        • Core Toggle Functionality
        • Appearance and Theming
        • Logging and Diagnostics
        • Interactive Effects
        • Labels and Icons
        • Audio Feedback
        • Thumb Customization
        • Animation Settings
        • Context Menu Integration
        • Tool-tip Capabilities
        • Events and Callbacks
      • Siticone UpDown
        • Behavior and Data Config
        • Appearance Customization
        • Feedback and Animation
        • Events and Callbacks
      • Siticone PhoneNumberBox
        • Page 1
        • Phone Number Config
        • Country Flag Display
        • Shadow Effects
        • Input Validation
        • Border and Background
        • Placeholder and Animation
        • Text & Cursor Customization
        • Font and Text Style
        • Corner and Fill Config
        • System Theme (Preview)
        • Public Methods & Text
        • Events and Callbacks
      • Siticone Otp
        • Security & Input Protection
        • Interactive Feedback
        • Input Validation
        • Box Appearance & Layout
        • Data Extraction & Display
        • State Analysis
        • Events and Callbacks
        • Additional Public Methods
    • Buttons and Elements
      • Siticone Button
        • Animation Effects
        • Theme & System Integration
        • User Assist & Interaction
        • Layout & Content
        • Visual Effects & Styling
        • Badge Configuration
        • Manage State & Behavior
        • Performance and Rendering
        • Events for Control Updates
      • Siticone TileButton
        • Animation Effects
        • Color Settings
        • Visual Style
        • Icon Settings
        • Advanced Styling
        • Badge Display
        • Loading Indicator
        • State Management
        • Tool-tip Settings
        • Accessibility
        • Corner Radius
      • Siticone ImageButton
        • Content Presentation
        • Interaction and Behavior
        • Feedback and Animations
        • Visual Style and Layout
        • Badge Features
        • Theme Integration
        • Events and Callbacks
      • Siticone MenuButton
        • Appearance and Visual Style
        • Icon Customization
        • Animation Features
        • Behavior and Interaction
        • Events and Callbacks
      • Siticone CloseButton
        • Appearance Customization
        • Animation and Visual Effects
        • Behavioral Settings
        • Accessibility Features
        • Tool-tip Configuration
        • Countdown Display Config
        • Events and Callbacks
      • Siticone CopyButton
        • Appearance & Visual Effects
        • Corner and Shape Config
        • Behavior & Target Copy
        • Notification Customization
        • Context Menu Customization
        • Accessibility Features
        • Events and Callbacks
      • Siticone DashboardButton
        • Visual Effects
        • Visual Appearance
        • Notification Badge
        • Selection Indicator
        • Layout and Text
        • State Management & Colors
        • Animation Settings
        • Shape Customization
        • Accessibility
        • User Interaction Events
      • Siticone NavBackButton
        • Behavior and Feedback
        • Visual Appearance
        • Dimensions & Icon Styling
        • Animation Effects
        • Visual Style Enhancements
        • Events and Callbacks
      • Siticone NavForwardBtn
        • Behavior & Read-Only Config
        • Icon Customization
        • Colors & Visual Feedback
        • Button Dimensions & Shape
        • Animation Features
        • Visual Style and Effects
        • Events for Animation
        • Control Overrides
        • Events and Callbacks
      • Siticone NotificationBtn
        • Tool-tip Features
        • Layout & Size Customization
        • Bell Appearance & Behavior
        • Badge (Count) Features
        • Interaction and Gesture
        • Visual Effects and Animation
        • Visual Style and Shadow
        • Additional Behavior Settings
        • Events for Feedback
        • Events and Callbacks
      • Siticone PlayPauseBtn
        • Progress Indicator
        • Animation Effects
        • Visual Style
        • Shape Customization
        • Shape Customization
        • Icon Customization
        • Behavior
        • Events and Callbacks
    • Container and Layout
      • Siticone Panel
        • Border Customization
        • Corner Curvature
        • Background Appearance
        • Gradient Effects
        • Interactive Ripple Effects
        • Backdrop Effects
        • Event Notifications
      • Siticone AdvancedPanel
        • Essential Styling
        • Motion and Animation
        • Color and Gradient
        • Depth and Shadow
        • Border Enhancements
        • Interactive States
        • Background Effects
        • Content Management
        • Events and Callback
      • Siticone FlatPanel
        • Appearance and Styling
        • Performance & Rendering
        • Design-Time Integration
      • Siticone FlowPanel
        • Appearance & Visual Effects
        • Layout Customization
        • Performance Optimization
        • Interaction and Behavior
        • Theme & DPI Integration
        • Events and Callbacks
      • Siticone Container
        • Color and Gradients
        • Border Design and Styling
        • Corner and Shape Config
        • Shadow & Elevation Effects
        • Interactive and Animations
        • Badge Configuration
        • Content Management
        • Context Menu Integration
        • Dragging and Interaction
        • Security and Feedback
        • Events and Callbacks
      • Siticone SplitContainer
        • Event Handling
        • Splitter Movement & Behavior
        • Animation & Smooth Drag
        • Appearance and Styling
        • State Management
        • Accessibility & Keyboard Navigation
        • Context Menu Integration
        • System Theme Integration
        • Drag and Drop Panel Reordering
      • Siticone GroupBox
        • Theming and Aesthetics
        • Border & Edge Effects
        • Text & Title Styling
        • Layout Configuration
        • Chevron Styling
        • Badge Config & Animation
        • Collapsible Features
        • Interaction Behavior & Events
        • Status Elements
      • Siticone NativeGroupBox
        • Border Customization
        • Appearance & Layout
      • Siticone DragPanel
        • Layout Customization
        • Appearance Customization
        • Rendering Quality
        • Interactive Behavior
      • Siticone Card
        • Color and Gradients
        • Border Config & Styling
        • Corner and Shape Config
        • Shadow and Elevation
        • Interactive Effects and Animations
        • Hover Effects
        • Visual Effects
        • Badge Configuration
        • Security and Feedback Settings
        • Dynamic Content & Context Menu
        • Drag-and-Drop Interaction
        • Front-Facing Events
      • Siticone TabControl
        • General Layout and Sizing
        • Appearance and Color Customization
        • Close Button Customization
        • Pin Functionality
        • Tab Management and Navigation
        • Animation and Visual Effects
        • Context Menu Customization
        • Events and Callbacks
      • Siticone Workbook (Preview)
    • Progress and Loading
      • Siticone HProgressBar
        • Rounded Corners & Shape Customization
        • Progress Value & Range Management
        • Orientation & Layout
        • Animation & Indeterminate Mode
        • Progress State Colors & Thresholds
        • Gradient & Bar Styling
        • Label & Tooltip Customization
        • Read‑Only Mode
        • Ripple Effects
        • User Experience Enhancements
        • System Theme Tracking
        • Events and Callbacks
      • Siticone VProgressBar
        • Appearance & Styling
        • Behavior, Animation & Interaction
        • System Integration & Events
      • Siticone HBarsProgress
        • Animation Control
        • Progress Value Management
        • Appearance and Styling
        • Display and Interaction
        • Events and Callbacks
      • Siticone VBarsProgress
        • Animation Features
        • Progress and Range Settings
        • Line Configuration
        • Color and Appearance
        • Display Options
        • User Interaction
        • Events and Callbacks
      • Siticone HLineProgress
        • Range Settings
        • Animation Settings
        • Color and Gradient Design
        • Visual Effects
        • Pulse Animation Settings
        • Corner Radius Customization
        • Page
      • Siticone VLineProgress
        • Range Settings
        • Animation Settings
        • Color and Gradient Customization
        • Background and Highlight Effects
        • Pulse Animation Settings
        • Corner Radius Settings
      • Siticone CircularSpinner
        • Visual Customization
        • Geometry and Layout
        • Motion and Animation
        • Progress Indication
        • Events
      • Siticone LoadingSpinner
        • General Control Methods & Events
        • Animation Settings
        • Appearance & Visual Customization
        • Progress Display Customization
        • Size & Radius Customization
        • Ring & Spoke Customization
        • Special Effects
        • Events and Callbacks
      • Siticone RadialProgress
        • Core Configuration
        • Visual Styling
        • Interaction and Control
        • Animation and Motion
        • Advanced Effects & Readonly State
        • Color Customization
        • Indeterminate Mode
        • Events
      • Siticone SmoothCSpinner
        • Appearance Customization
        • Animation Control
        • Arc Dimension Settings
      • Siticone SmoothLProgress
        • Dual-Bar Behavior
        • Visual Appearance
        • Motion Dynamics
        • Animation Control
    • Sliders and Range
      • Siticone HSlider
        • Appearance and Layout
        • Read-Only Customization
        • Visual Effects & Animations
        • Interaction & Behavior
        • Data Binding & State Management
        • Events & Accessibility
        • Built-In Context Menu Operations
      • Siticone VSlider
        • Data & Value Management
        • Appearance Customization
        • Read-Only Mode Appearance
        • Visual Effects & Animations
        • Interaction & Feedback Settings
        • Events & Event Handling
        • State Management
        • Accessibility & Data Binding Support
      • Siticone HTrackBar
        • Data & Value Management
        • Appearance Customization
        • Animation & Interaction Effects
        • Behavior & Interaction
        • Accessibility & Data Binding
        • Events
      • Siticone VTrackBar
        • Value and Range Configuration
        • Appearance Customization
        • Animation and Interaction Customization
        • Feedback Mechanisms
        • Context Menu and Tooltip Features
        • Accessibility and Keyboard Support
        • State Management and Data Binding
        • Events
      • Siticone HRangeSlider
        • Behavior & Value Management
        • Appearance Customization
        • User Interaction
        • Events
      • Siticone HRangeTrackBar
        • Behavior Settings
        • Appearance Settings
        • Event Handling
        • Built-In Context Menu Functionality
        • Keyboard and Mouse Interaction
    • Data Display and Grid
      • Siticone DataGrid
        • Data Management & Binding
        • Theming and Appearance Customization
        • Behavior & Interaction
        • Built-In Data Import/Export and Encryption
        • Search and Filtering Capabilities
        • Text Formatting and Cell Styling (Ribbon Toolbar)
        • User Interaction Enhancements
        • Events and Callbacks
      • Siticone Label
        • Text and Content
        • Transparent Background
        • Layout & Rendering Enhancements
        • Standard Layout Properties (Inherited)
      • Siticone LinkedLabel
        • Text and Link Behavior
        • Color Properties
        • Font and Appearance
        • Events
      • Siticone ShimmerLabel
        • Shimmer Appearance
        • Shimmer Behavior
        • Shimmer Text
    • Form Design Framework
      • Siticone Form
        • Window Behavior & Layout
        • Title Bar Customization
        • Control Box (Window Buttons) Customization
        • Theme and Appearance
        • Animation & Visual Effects
        • Events and Public Methods
      • Siticone EmptyForm
        • Visual Appearance & Styling
        • Rendering and Performance Enhancements
      • Siticone DragForm
        • Drag Functionality
        • Accessibility and Keyboard Navigation
        • Performance Optimizations
        • Appearance Customization
    • Gauges and Measurement
      • Siticone GaugeClock
        • Value Hand Customization
        • Core Appearance & Theme
        • Typography & Labeling
        • Gauge Configuration & Value Range
        • 3D Effects and Metallic Appearance
        • Visual Effects and Enhancements
        • Gradient Customization
        • Display & Format Options
        • Scale and Tick Mark Configuration
        • Animation & Interaction
        • Export/Import and Context Menu Options
        • Section Management
        • Events and Callbacks
      • Siticone GaugeDigital
        • Gauge Core Settings
        • LED Display Settings
        • Visual Style and Themes
        • 3D Effects
        • Lighting Effects
        • Typography and Scale
        • Custom Gradients and Texture
        • Animation and Interactivity
        • Context Menu Operations
        • Events
      • Siticone GaugeNumeric
        • Gauge Display & Value
        • Scale and Markers
        • Typography & Text
        • Color Customization
        • 3D and Special Effects
        • Interaction & Tool-tip
        • Additional Features & Events
      • Siticone GaugeZone
        • ZonePasswordForm (Password Dialog Control)
        • Control Features
    • Chip and Group Controls
      • Siticone Chip
        • Appearance & Color Scheme
        • Corner and Shape Customization
        • Visual Effects
        • Interaction & Behavior
        • Close Button Customization
        • Selection Indicator Customization
        • Visual Content
        • Events
      • Siticone GroupChip
        • Group Management
        • Visual Effects
        • State Colors
        • Close Button Styling & Layout
        • Selection Indicator
        • Visual Elements
        • Color Scheme
        • Border Customization
        • Corner Customization
        • Interactive Features
        • Animation Settings
        • Behavior
        • Events
      • Siticone GroupChipPanel
        • Drag-and-Drop Customization
        • Chip Selection Customization
        • Chip Management API
        • Chip Events
      • Siticone GroupButton
        • Material Design Effects
        • Surface Styling
        • Screen Reader Support
        • Alert System (Badge Features)
        • Selection and Interactive States
        • Selection Markers and Indicator Customization
        • Content Layout
        • Animation and Motion
        • Corner and Shape Customization
        • Events and Callbacks
    • Media and Graphics
      • Siticone Audio
        • Basic Behavior and State
        • Appearance Customization
        • Sound Wave Animation and Style
        • Visual Effects and Animations
        • Events and Callbacks
      • Siticone PictureBox
        • Image Loading and Display
        • Layout and Sizing
        • Shape and Border Config
        • Image Quality and Effects
        • Image Transformations
        • Slideshow Functionality
        • Interaction & Behavior
        • Performance & Display
      • Signature Pad
        • Context Menu Customization
        • Template Customization
        • Animation Features
        • Stroke Aesthetics and Dynamics
        • Input Processing and Guides
        • Visual Guides
        • Rendering Quality
        • Performance
        • User Experience
        • Public Methods for Signature Handling
        • Public Events for Integration
        • Events
    • Separator Controls
      • Siticone HSeparator
        • Segment Configuration
        • Line Multiplication
        • Visual Styling
      • Siticone VSeparator
        • Segment Configuration
        • Line Multiplication
        • Visual Styling
        • Enumerations
    • Utility Controls
      • Siticone BackgroundWkr
        • Worker Initialization and Configuration
        • Custom Progress Reporting Functionality
      • Siticone SystemInfo
        • System and Service Information
        • Security and User Information
        • Performance and Memory Metrics
        • System Hardware and Operating System Details
        • Peripherals and Additional Devices
        • Hardware (Detailed)
        • Display Details
        • Network Information
        • Configuration Options
        • Methods for Data Retrieval and Export
        • Events and Callbacks
      • Siticone TaskbarBadgeS.
        • Badge Display & Formatting
        • Animation Effects
        • Notification Effects
        • Flash / Highlight Effects
        • System Theme Integration
        • Parent Form Integration
        • Events and Callbacks
      • Siticone ThemeSwitcher
        • Layout and Spacing
        • Visual Effects and Animation
        • Icon Customization
        • Border and Corner Configuration
        • Color Scheme
        • Behavior and State
        • Accessibility
      • Siticone ThemeTracker
        • Theme and Accent Information
        • Theme Application and Automation
        • Theme & Accent Events
        • Initialization
      • Siticone IdGen
        • Unique ID Customization
        • Character Set Customization
        • ID Generation Strategy and Distribution Settings
        • ID Generation and Collision Handling
    • Data Formatting and Display
      • Siticone Humanizer Date..
        • Data Management
        • Formatting Settings
        • Calculation Options
        • Custom Translations
      • Siticone HumanizerDec..
        • Input Value Configuration
        • Automatic Humanized Output
        • Customizable Humanization
      • Siticone HumanizerFloat
        • Formatting Features
        • Validation Features
        • Currency Features
        • Localization Features
        • Value and Precision Features
        • Read-Only Display Features
        • Additional Public Methods
        • Enumerations (for Customization)
      • Siticone HumanizerInt
        • Core Number Conversion
        • Text Customization and Styling Options
        • Number Scale & Localization
        • Currency Features
        • Performance and Asynchronous Processing
        • Caching Mechanism and Management
        • Settings Change Notifications
      • Siticone HumanizerLong
        • Core Number Conversion
        • Formatting and Localization Options
        • Security and Data Integrity
        • Performance and Caching
        • Events for Developer Integration
    • Special Purpose Controls
      • Siticone CardNumber
        • Appearance Customization
        • Credit Card Specific Features
        • Input and Validation
        • Read-Only Customization
        • Shadow & Animation Effects
        • Selection and Text Editing
        • Context Menu Support
        • Credit Card Events
      • Siticone CopyUrl
        • URL Display and Core Functionality
        • Icon Management
        • Copy Button Customization
        • Text Styling
        • Background & Border Styling
        • Corner Styling
        • Animation Effects
        • Interaction Behavior
        • Notification System
        • Additional Built-In Features
      • Siticone Rating
        • Rating Functionality
        • Appearance Customization
        • Layout and Sizing Customization
        • Behavior Customization
        • Animation Customization
        • Focus and Accessibility Customization
        • Right‑Click Context Menu Customization
      • Siticone RatingEmoji
        • Theme Management
        • Emoji Customization
        • Visual Enhancement
        • Selection and Rating
        • Animation and Interaction Dynamics
        • User Feedback
        • Data Persistence
Powered by GitBook
On this page
  1. Net Framework | Net Core UI
  2. Input Controls
  3. Siticone CheckBox

Visual Style

Customize the overall appearance and aesthetic of the Siticone CheckBox to align with your application's design language.

Overview

The Visual Style feature empowers developers to tailor the SiticoneCheckBox control's appearance through various styles and color properties. By leveraging these customization options, you can ensure that the checkbox seamlessly integrates with your application's theme, enhancing both usability and visual appeal.

Key Properties

The following table outlines the primary public properties associated with the Visual Style of the SiticoneCheckBox. These properties allow for extensive customization of the checkbox's look and feel.

Property

Type

Description

Style

CheckBoxStyle

Determines the visual appearance of the checkbox. Choose from predefined styles to alter its look.

SwitchTrackColor

Color

Sets the color of the switch track when the checkbox is unchecked.

SwitchCheckedTrackColor

Color

Sets the color of the switch track when the checkbox is checked.

EnableRippleEffect

bool

Enables or disables the ripple effect in the Material style.

CheckmarkColor

Color

Sets the color of the checkmark displayed when the checkbox is checked.

CheckedBorderColor

Color

Sets the border color of the checkbox when it is checked.

BorderWidth

int

Sets the width of the checkbox border.

BorderColor

Color

Sets the color of the checkbox border.

CheckBoxSize

int

Sets the size of the checkbox.

TopLeftRadius

int

Sets the top-left corner radius of the checkbox.

TopRightRadius

int

Sets the top-right corner radius of the checkbox.

BottomLeftRadius

int

Sets the bottom-left corner radius of the checkbox.

BottomRightRadius

int

Sets the bottom-right corner radius of the checkbox.

IndeterminateColor

Color

Sets the color representing the indeterminate state.

IndeterminateBorderColor

Color

Sets the border color for the indeterminate state.

Enumerations

Understanding the enumerations associated with the Visual Style is crucial for selecting the appropriate appearance for the checkbox.

CheckBoxStyle

Defines the various visual styles available for the SiticoneCheckBox.

Value

Description

Classic

Original style with a filled background.

TickOnly

Displays only the checkmark path morphing.

Minimal

Simple border with minimal animation.

Circle

Circular checkbox with a centered dot.

Material

Material Design-inspired with a ripple effect.

CheckState

Represents the current state of the checkbox.

Value

Description

Unchecked

The checkbox is not checked.

Checked

The checkbox is checked.

Indeterminate

The checkbox is in an indeterminate state (optional).

Detailed Property Descriptions

1. Style (CheckBoxStyle)

Description: Determines the visual appearance of the checkbox by selecting one of the predefined styles.

Usage: Choose from styles like Classic, TickOnly, Minimal, Circle, or Material to change the checkbox's look and feel.

Example:

// Set the checkbox to use the Material Design style
siticoneCheckBox.Style = CheckBoxStyle.Material;

Visual Representation:

Style

Description

Classic

Displays a traditional checkbox with a filled background.

TickOnly

Shows only the checkmark with path morphing animation.

Minimal

Features a simple border with subtle animations.

Circle

Presents a circular checkbox with a centered dot.

Material

Incorporates Material Design principles with ripple effects.


2. SwitchTrackColor (Color)

Description: Sets the color of the switch track when the checkbox is in the unchecked state.

Usage: Customize the unchecked state track color to align with your application's theme.

Example:

// Set the switch track color to light gray when unchecked
siticoneCheckBox.SwitchTrackColor = Color.LightGray;

3. SwitchCheckedTrackColor (Color)

Description: Sets the color of the switch track when the checkbox is in the checked state.

Usage: Define the checked state track color to provide visual distinction and feedback to users.

Example:

// Set the switch track color to blue when checked
siticoneCheckBox.SwitchCheckedTrackColor = Color.Blue;

4. EnableRippleEffect (bool)

Description: Enables or disables the ripple effect animation in the Material style of the checkbox.

Usage: Activate ripple animations to enhance interactivity or disable them for a more subdued appearance.

Example:

// Enable ripple effect for Material style
siticoneCheckBox.EnableRippleEffect = true;

// Disable ripple effect
siticoneCheckBox.EnableRippleEffect = false;

Best Practices:

Best Practice

Description

Consistency

Use ripple effects consistently across similar controls to maintain a uniform user experience.

Performance Awareness

Consider disabling ripple effects on performance-critical applications to reduce rendering overhead.


5. CheckmarkColor (Color)

Description: Sets the color of the checkmark displayed when the checkbox is checked.

Usage: Customize the checkmark color to ensure visibility and alignment with your application's color scheme.

Example:

// Set the checkmark color to white
siticoneCheckBox.CheckmarkColor = Color.White;

// Set the checkmark color to red for emphasis
siticoneCheckBox.CheckmarkColor = Color.Red;

6. CheckedBorderColor (Color)

Description: Sets the border color of the checkbox when it is checked.

Usage: Define the border color to visually indicate that the checkbox is checked, enhancing user feedback.

Example:

// Set the checked border color to green
siticoneCheckBox.CheckedBorderColor = Color.Green;

7. BorderWidth (int)

Description: Sets the width of the checkbox border.

Usage: Adjust the thickness of the border to achieve the desired visual emphasis.

Example:

// Set the border width to 3 pixels
siticoneCheckBox.BorderWidth = 3;

8. BorderColor (Color)

Description: Sets the color of the checkbox border.

Usage: Customize the border color to match your application's design palette, ensuring visual harmony.

Example:

// Set the border color to dark gray
siticoneCheckBox.BorderColor = Color.DarkGray;

9. CheckBoxSize (int)

Description: Sets the size of the checkbox.

Usage: Define the overall size of the checkbox to fit the layout requirements of your application, ensuring it remains proportionate and accessible.

Example:

// Set the checkbox size to 25 pixels
siticoneCheckBox.CheckBoxSize = 25;

10. Corner Radius Properties (TopLeftRadius, TopRightRadius, BottomLeftRadius, BottomRightRadius)

Description: Sets the corner radius for each corner of the checkbox, allowing for customized curvature.

Usage: Adjust these properties to create rounded or sharp edges, enhancing the checkbox's aesthetic appeal.

Example:

// Set all corner radii to 10 pixels for a uniformly rounded checkbox
siticoneCheckBox.TopLeftRadius = 10;
siticoneCheckBox.TopRightRadius = 10;
siticoneCheckBox.BottomLeftRadius = 10;
siticoneCheckBox.BottomRightRadius = 10;

Grouped Properties Table:

Property

Type

Description

TopLeftRadius

int

Sets the top-left corner radius of the checkbox.

TopRightRadius

int

Sets the top-right corner radius of the checkbox.

BottomLeftRadius

int

Sets the bottom-left corner radius of the checkbox.

BottomRightRadius

int

Sets the bottom-right corner radius of the checkbox.


11. IndeterminateColor (Color)

Description: Sets the color representing the indeterminate state of the checkbox.

Usage: Define a specific color to visually represent the indeterminate state, which is useful for scenarios like "Select All" checkboxes that indicate partial selection.

Example:

// Set the indeterminate color to orange
siticoneCheckBox.IndeterminateColor = Color.Orange;

12. IndeterminateBorderColor (Color)

Description: Sets the border color for the indeterminate state of the checkbox.

Usage: Customize the border color when the checkbox is in the indeterminate state to differentiate it from checked and unchecked states.

Example:

// Set the indeterminate border color to dark orange
siticoneCheckBox.IndeterminateBorderColor = Color.DarkOrange;

Code Examples

Example 1: Applying a Classic Style with Customized Colors

using SiticoneNetFrameworkUI;
using System.Drawing;
using System.Windows.Forms;

public class ClassicStyleForm : Form
{
    private SiticoneCheckBox siticoneCheckBox;

    public ClassicStyleForm()
    {
        InitializeComponent();
    }

    private void InitializeComponent()
    {
        this.siticoneCheckBox = new SiticoneCheckBox();
        this.SuspendLayout();

        // 
        // siticoneCheckBox
        // 
        this.siticoneCheckBox.Style = CheckBoxStyle.Classic;
        this.siticoneCheckBox.SwitchTrackColor = Color.LightGray;
        this.siticoneCheckBox.SwitchCheckedTrackColor = Color.Green;
        this.siticoneCheckBox.CheckmarkColor = Color.White;
        this.siticoneCheckBox.CheckedBorderColor = Color.Green;
        this.siticoneCheckBox.BorderWidth = 2;
        this.siticoneCheckBox.BorderColor = Color.DarkGray;
        this.siticoneCheckBox.CheckBoxSize = 20;
        this.siticoneCheckBox.TopLeftRadius = 5;
        this.siticoneCheckBox.TopRightRadius = 5;
        this.siticoneCheckBox.BottomLeftRadius = 5;
        this.siticoneCheckBox.BottomRightRadius = 5;
        this.siticoneCheckBox.Text = "Enable Feature";
        this.siticoneCheckBox.Location = new Point(50, 50);
        this.siticoneCheckBox.Size = new Size(180, 35);

        // 
        // ClassicStyleForm
        // 
        this.ClientSize = new Size(300, 200);
        this.Controls.Add(this.siticoneCheckBox);
        this.Text = "SiticoneCheckBox - Classic Style";
        this.ResumeLayout(false);
    }
}

Example 2: Using Material Style with Ripple Effect Disabled

using SiticoneNetFrameworkUI;
using System.Drawing;
using System.Windows.Forms;

public class MaterialStyleForm : Form
{
    private SiticoneCheckBox materialCheckBox;

    public MaterialStyleForm()
    {
        InitializeComponent();
    }

    private void InitializeComponent()
    {
        this.materialCheckBox = new SiticoneCheckBox();
        this.SuspendLayout();

        // 
        // materialCheckBox
        // 
        this.materialCheckBox.Style = CheckBoxStyle.Material;
        this.materialCheckBox.SwitchTrackColor = Color.LightBlue;
        this.materialCheckBox.SwitchCheckedTrackColor = Color.DarkBlue;
        this.materialCheckBox.EnableRippleEffect = false; // Ripple effect disabled
        this.materialCheckBox.CheckmarkColor = Color.White;
        this.materialCheckBox.CheckedBorderColor = Color.DarkBlue;
        this.materialCheckBox.BorderWidth = 2;
        this.materialCheckBox.BorderColor = Color.Gray;
        this.materialCheckBox.CheckBoxSize = 20;
        this.materialCheckBox.TopLeftRadius = 5;
        this.materialCheckBox.TopRightRadius = 5;
        this.materialCheckBox.BottomLeftRadius = 5;
        this.materialCheckBox.BottomRightRadius = 5;
        this.materialCheckBox.Text = "Subscribe to Newsletter";
        this.materialCheckBox.Location = new Point(50, 50);
        this.materialCheckBox.Size = new Size(220, 35);

        // 
        // MaterialStyleForm
        // 
        this.ClientSize = new Size(300, 200);
        this.Controls.Add(this.materialCheckBox);
        this.Text = "SiticoneCheckBox - Material Style";
        this.ResumeLayout(false);
    }
}

Best Practices

Adhering to best practices ensures that the SiticoneCheckBox not only looks great but also functions optimally within your application. The following table outlines key best practices for customizing the Visual Style.

Best Practice

Description

Maintain Consistency

Use consistent styles and color schemes across all checkbox controls to provide a uniform user experience.

Ensure Sufficient Contrast

Choose CheckmarkColor and BorderColor with high contrast against the background for better visibility.

Optimize for Performance

Enable only necessary animations (e.g., EnableRippleEffect) to maintain application responsiveness.

Consider Accessibility

Select colors that are distinguishable for users with color vision deficiencies and ensure text is clear.

Responsive Sizing

Adjust CheckBoxSize and corner radii (TopLeftRadius, etc.) to fit different UI layouts and resolutions.

Use Meaningful Colors

Align SwitchTrackColor and SwitchCheckedTrackColor with your application's color palette for coherence.

Test Across Styles

Verify the checkbox appearance in all selected styles (Classic, Material, etc.) to ensure consistency.

Leverage Container Styling

When using IsContained, customize container properties to enhance the checkbox's integration within the UI.


Common Pitfalls and Design Considerations

Avoiding common pitfalls and understanding key design considerations will help you create a visually appealing and user-friendly checkbox control. The following tables detail these aspects.

Common Pitfalls

Pitfall

Description

Solution

Overusing Animations

Excessive use of animations like ripple effects can clutter the UI and distract users.

Use animations sparingly and purposefully to enhance, not overwhelm, the user experience.

Inadequate Contrast

Low contrast between CheckmarkColor and background can make the checkmark hard to see.

Ensure high contrast by selecting colors that stand out against the checkbox's background.

Inconsistent Styling

Mixing different styles within the same application can confuse users and disrupt visual harmony.

Stick to a consistent style across all checkbox controls to maintain a cohesive look and feel.

Ignoring Accessibility

Choosing colors that are not distinguishable for users with color vision deficiencies can hinder usability.

Use accessible color palettes and ensure that the checkbox state is discernible without relying solely on color.

Hardcoding Sizes

Fixed sizes may not adapt well to different screen resolutions and layouts, leading to UI issues.

Utilize flexible sizing (CheckBoxSize) and test across various resolutions to ensure scalability.

Design Considerations

Consideration

Description

Implementation Tips

User Experience (UX)

The visual style impacts how users perceive and interact with the checkbox.

Choose styles that align with the overall UX goals of your application, whether it's modern, minimalist, etc.

Performance Impact

Visual enhancements like ripple effects may affect rendering performance, especially on lower-end devices.

Test the performance impact of animations and consider providing options to disable them if necessary.

Accessibility Compliance

Ensuring that the checkbox is accessible to all users, including those with disabilities.

Follow accessibility guidelines by providing sufficient contrast and supporting screen readers through the Text property.

Scalability and Responsiveness

The checkbox should look good and function correctly across different screen sizes and resolutions.

Utilize responsive sizing and corner radii adjustments to maintain visual integrity on various devices.

Thematic Alignment

The checkbox should harmonize with the application's overall theme and color scheme.

Align SwitchTrackColor, SwitchCheckedTrackColor, and other color properties with the application's primary and secondary colors.

Interactivity Feedback

Visual feedback like border color changes on hover or press enhances user interaction.

Implement dynamic color changes and animations to provide immediate feedback on user actions.


Design Considerations

Designing an effective Visual Style for the SiticoneCheckBox involves several key considerations to ensure that the control is both functional and aesthetically pleasing.

Aspect

Consideration

Implementation Tips

User Experience (UX)

The visual style directly influences how users interact with the checkbox, affecting usability and satisfaction.

Select a style that complements the application's overall UX strategy, whether it's focused on simplicity, modernity, or functionality.

Performance Impact

Animations and visual effects can increase the rendering load, potentially impacting application performance, especially on older hardware.

Optimize animations by balancing visual appeal with performance, and consider disabling non-essential effects if necessary.

Accessibility Compliance

Ensuring that the checkbox is accessible to all users, including those with visual impairments or disabilities, is crucial for inclusive design.

Use high-contrast colors, provide clear text labels, and support keyboard navigation and screen readers.

Scalability and Responsiveness

The checkbox should maintain its visual integrity across different screen sizes, resolutions, and DPI settings to ensure consistency in various environments.

Implement responsive sizing and flexible corner radii, and test the control on multiple display configurations.

Thematic Alignment

The checkbox's colors and styles should align with the application's overall theme to create a cohesive and unified interface.

Match SwitchTrackColor, SwitchCheckedTrackColor, and other color properties with the application's primary and secondary color palette.

Interactivity Feedback

Providing immediate visual feedback on interactions (hover, press, check) enhances user engagement and intuitiveness.

Utilize dynamic color changes, border adjustments, and animations to reflect user actions in real-time.

Customization Flexibility

Allowing extensive customization ensures that the checkbox can be adapted to various design requirements and personal preferences.

Expose properties like CheckBoxSize, corner radii, and color properties to give developers control over the checkbox's appearance.

Consistency Across Controls

Maintaining a consistent style across all checkbox instances and related controls fosters a professional and polished look.

Define and adhere to a style guide that specifies the usage of styles, colors, and sizes for all checkbox controls within the application.


Summary and Review

The Visual Style feature of the SiticoneCheckBox control provides a robust set of properties that allow developers to extensively customize the checkbox's appearance. By thoughtfully configuring these properties, you can ensure that the checkbox not only fits seamlessly within your application's design but also enhances the overall user experience.

Key Takeaways:

Point

Explanation

Flexible Styling Options

Multiple styles (Classic, TickOnly, Minimal, Circle, Material) cater to diverse design needs and preferences.

Comprehensive Color Customization

Properties like SwitchTrackColor, SwitchCheckedTrackColor, and CheckmarkColor allow precise control over the checkbox's color scheme.

Interactive Enhancements

Features such as EnableRippleEffect provide dynamic feedback, improving user engagement and interactivity.

Corner Radius Control

Individual corner radius properties (TopLeftRadius, TopRightRadius, etc.) offer detailed control over the checkbox's shape.

Accessibility Focus

Thoughtful color choices and clear labeling ensure that the checkbox is accessible to all users, including those with disabilities.

Performance Considerations

Balancing visual enhancements with application performance is crucial for maintaining responsiveness and efficiency.

Consistent Theming

Aligning the checkbox's visual properties with the application's theme fosters a cohesive and professional interface.

By adhering to the best practices and design considerations outlined above, developers can harness the full potential of the SiticoneCheckBox control's Visual Style feature, creating checkboxes that are not only functional but also visually stunning and user-friendly.

PreviousSiticone CheckBoxNextState Management

Last updated 4 months ago