syncfusion-maui-checkbox

$npx mdskill add syncfusion/maui-ui-components-skills/syncfusion-maui-checkbox

Implement Syncfusion .NET MAUI CheckBox controls in MAUI apps.

  • Adds three-state checkboxes, selection controls, and toggle buttons to MAUI UIs.
  • Depends on Syncfusion .NET MAUI toolkit (SfCheckBox) and .NET MAUI framework.
  • Uses user requirements for checkbox state, events, and visual customization.
  • Provides XAML code snippets and event handlers for checkbox integration.

SKILL.md

.github/skills/syncfusion-maui-checkboxView on GitHub ↗
---
name: syncfusion-maui-checkbox
description: Implements Syncfusion .NET MAUI CheckBox (SfCheckBox) controls in MAUI applications. Use when implementing checkboxes, selection controls, or toggle buttons in .NET MAUI. Covers three-state checkboxes, indeterminate state, checkbox customization, checkbox events, visual states, and checkbox groups.
metadata:
  author: "Syncfusion Inc"
  version: "34.1.29"
---

# Implementing Checkboxes in .NET MAUI

The Syncfusion .NET MAUI CheckBox (SfCheckBox) is a selection control that allows users to choose one or more options from a set. It supports three states (checked, unchecked, indeterminate), extensive visual customization, and event-driven state management.

## When to Use This Skill

Use this skill when the user needs to:

- **Implement checkbox controls** in .NET MAUI applications
- **Add selection controls** for single or multiple choice scenarios
- **Create three-state checkboxes** with indeterminate state support
- **Customize checkbox appearance** (colors, shapes, sizes, text)
- **Handle checkbox events** (StateChanged, StateChanging)
- **Apply visual states** using VisualStateManager
- **Build checkbox groups** for multi-select scenarios (e.g., settings, forms, filters)
- **Implement parent-child checkbox hierarchies** with select-all functionality
- **Create terms and conditions** acceptance UI
- **Add accessible selection controls** with MAUI styling

## Component Overview

The SfCheckBox control provides:
- **Three-state support**: Checked, Unchecked, and Indeterminate states
- **Visual customization**: Colors, corner radius, stroke thickness, tick color
- **Text customization**: Font, color, alignment, line break modes
- **Event handling**: StateChanged and StateChanging events
- **Visual State Manager**: Custom appearance for each state
- **Animation control**: Enable/disable state change animations

## Documentation and Navigation Guide

### Getting Started and Installation

📄 **Read:** [references/getting-started.md](references/getting-started.md)

**When to read**: User is setting up SfCheckBox for the first time, needs installation steps, or wants basic implementation examples.

Topics covered:
- Installing Syncfusion.Maui.Buttons NuGet package
- Registering Syncfusion handler (ConfigureSyncfusionCore)
- Basic CheckBox implementation (XAML and C#)
- Setting checkbox caption text
- Understanding three states (Checked, Unchecked, Indeterminate)
- Single checkbox scenarios (terms of service, agreements)
- Multiple checkbox groups (multi-select options)
- Intermediate state with parent-child relationships
- Select-all checkbox patterns

### Visual Customization

📄 **Read:** [references/visual-customization.md](references/visual-customization.md)

**When to read**: User wants to customize the appearance of checkboxes, change colors, adjust sizes, modify text styling, or control animations.

Topics covered:
- Shape customization (CornerRadius for rounded checkboxes)
- State colors (CheckedColor, UncheckedColor)
- Stroke thickness customization
- Caption text appearance (TextColor, FontFamily, FontSize, FontAttributes, HorizontalTextAlignment)
- Tick color customization
- LineBreakMode options (wrap or truncate text)
- Size customization (ControlSize property)
- Font auto-scaling (FontAutoScalingEnabled)
- Animation control (EnabledAnimation)
- Content spacing between checkbox and text

### Events and State Management

📄 **Read:** [references/events.md](references/events.md)

**When to read**: User needs to respond to checkbox state changes, validate selections, or implement custom logic when checkboxes are toggled.

Topics covered:
- StateChanged event and StateChangedEventArgs
- StateChanging event (cancellable before state change)
- Event handling patterns in XAML and C#
- Programmatic state changes
- Event-driven UI updates
- Preventing state changes with Cancel property
- Coordinating multiple checkbox states

### Visual States with VisualStateManager

📄 **Read:** [references/visual-states.md](references/visual-states.md)

**When to read**: User wants to apply different visual appearances for checked, unchecked, or indeterminate states using VisualStateManager.

Topics covered:
- Visual State Manager overview for SfCheckBox
- Three visual states (Checked, Unchecked, Intermediate)
- XAML implementation with VisualStateGroups
- C# implementation with VisualState setters
- Customizing properties per state
- Complete examples for each state

More from syncfusion/maui-ui-components-skills

SkillDescription
syncfusion-maui-accordionImplements Syncfusion .NET MAUI Accordion (SfAccordion) - a vertically collapsible panel with stacked headers for expanding/collapsing content. Use when working with accordions, collapsible panels, expandable lists, employee lists with details, or FAQ sections in .NET MAUI applications. Covers AccordionItem configuration, expand modes, and grouped content display.
syncfusion-maui-ai-assistviewImplements Syncfusion .NET MAUI AI AssistView (SfAIAssistView) for AI-powered interactive chat interfaces. Use when working with AI chat interfaces, AI AssistView, SfAIAssistView, conversational UI, or chat with AI responses. Covers integrating AI services, creating chat UIs, implementing conversation flows, managing AI requests/responses, and displaying AI suggestions.
syncfusion-maui-autocompleteImplements and configure Syncfusion .NET MAUI Autocomplete (SfAutocomplete) control for intelligent text input with suggestions. Use when implementing autocomplete, autosuggest, type-ahead search, smart search, or filtered dropdowns in .NET MAUI applications. Covers data binding, filtering modes, custom search logic, AI-powered search, multi-selection with tokens, and UI customization.
syncfusion-maui-avatar-viewImplements Syncfusion .NET MAUI Avatar View (SfAvatarView) for displaying user profile pictures, initials, or group avatars. Use when working with avatar views, profile pictures, user images, initials display, profile icons, or contact images. Ideal for implementing user profile displays, contact lists, chat interfaces, or social feeds.
syncfusion-maui-backdropImplements Syncfusion .NET MAUI Backdrop Page (SfBackdropPage) with back layer and front layer surfaces. Use when working with backdrop pages, SfBackdropPage, back layer, front layer, or reveal/conceal animations. Covers backdrop navigation patterns, header icons, corner shapes, reveal height, layer state events, and liquid glass effect.
syncfusion-maui-badge-viewImplements Syncfusion .NET MAUI Badge View (SfBadgeView) control. Use when adding badge notifications, status indicators, unread counts, or notification overlays to MAUI applications. Covers SfBadgeView setup, badge text customization, position adjustments, animations, predefined symbols, and accessibility features.
syncfusion-maui-barcode-generatorImplements Syncfusion .NET MAUI Barcode Generator (SfBarcodeGenerator) for generating machine-readable barcodes. Use when working with barcodes, barcode generation, QR codes, data matrix, EAN codes, UPC codes, Code128, or Code39. This skill covers both one-dimensional (linear) and two-dimensional (matrix) barcode symbologies with extensive customization options.
syncfusion-maui-busy-indicatorImplements Syncfusion .NET MAUI Busy Indicator (SfBusyIndicator) for showing loading states, data processing, and app activity indicators. Use when displaying loading indicators, busy animations, activity spinners, or processing feedback in .NET MAUI apps. Covers busy indicator setup, animations, and visual feedback during long-running operations.
syncfusion-maui-buttonImplements and customize Syncfusion .NET MAUI Button (SfButton) control. Use when working with MAUI buttons, SfButton implementation, button customization, or visual states. Covers button icons, background images, RTL support, Liquid Glass effects, custom button views, button styling, events, and checkable buttons.
syncfusion-maui-calendarImplements and customize Syncfusion .NET MAUI Calendar (SfCalendar) control. Use when implementing calendar functionality, date selection (single, multiple, range), or calendar views (month, year, decade, century). Covers date restrictions (min/max dates, EnablePastDates, SelectableDayPredicate), calendar customization, events (ViewChanged, SelectionChanged, Tapped), and header/footer customization.