Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

syncfusion-wpf-checkedlistbox同步融合 wpf 检查列表框

Agent Skill

syncfusion-wpf-checkedlistbox 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,035

周安装

44

GitHub Stars

2

下载量

363
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-wpf-checkedlistbox(同步融合 wpf 检查列表框)
来源仓库:https://github.com/syncfusion/wpf-ui-components-skills
仓库路径:skills/syncfusion-wpf-checkedlistbox
安装命令:
npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-checkedlistbox
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-checkedlistbox

简介

同步融合 WPF 检查列表框组件,支持多选功能的列表项控件。

  • 适用于权限管理、选项筛选等需要用户勾选多个项目的 WPF 交互场景。
  • 通过 GitHub 安装技能模块,使用 npx skills add 命令完成本地集成。
  • 需确保宿主环境已正确配置 WPF 及 Syncfusion 基础控件运行环境。
  • 建议参考官方示例了解如何将选中状态与业务逻辑进行数据绑定。

SKILL.md

Implementing Syncfusion WPF CheckedListBox

Guide for implementing the Syncfusion® WPF CheckedListBox (CheckListBox) control - a powerful list control that displays items with checkboxes for multi-item selection. This skill helps you integrate, configure, and customize the CheckListBox control in WPF applications with proper data binding, styling, and performance optimization.

When to Use This Skill

Use this skill when you need to:

  • Implement multi-select lists with checkbox controls in WPF
  • Display checkable items with custom content and templates
  • Bind data collections to CheckListBox with MVVM pattern
  • Handle item checking/unchecking events and selection states
  • Group and sort items within the list
  • Customize appearance including themes, colors, and checkbox placement
  • Optimize performance with virtualization for large datasets
  • Implement SelectAll/UnselectAll functionality
  • Configure layout options like orientation and wrapping
  • Troubleshoot CheckListBox-related issues

Component Overview

The CheckListBox control implements a classic list box with checkbox items, enabling multiple selection through checkboxes. Each item can be checked or unchecked independently, and the control supports rich customization, data binding, grouping, sorting, and virtualization for high-performance scenarios.

Key Features:

  • Single-click or double-click item selection
  • Checkbox alignment (left or right)
  • Full data binding and MVVM support
  • Grouping with CollectionView
  • Sorting capabilities
  • SelectAll/UnselectAll functionality
  • Built-in themes and visual styles
  • Virtualization for large item collections
  • Custom templates and styling
  • Event notifications for checked state changes

Assemblies Required:

  • Syncfusion.Shared.WPF
  • Syncfusion.Tools.WPF

Namespace: Syncfusion.Windows.Tools.Controls

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When to read: Starting a new CheckListBox implementation, setting up assemblies, or creating basic lists.

Topics covered:

  • Assembly deployment and NuGet packages
  • Creating WPF project with CheckListBox
  • Adding control via designer and XAML
  • Adding control manually in C#
  • Populating items using CheckListBoxItem
  • Populating items via data binding with ItemsSource
  • DisplayMemberPath configuration
  • Basic examples and minimal setup

Data Binding

📄 Read: references/data-binding.md

When to read: Implementing MVVM pattern, binding collections, or managing checked state through data binding.

Topics covered:

  • ItemsSource property configuration
  • DisplayMemberPath for display values
  • IsSelected property binding to model
  • Model and ViewModel implementation
  • ObservableCollection setup
  • TwoWay binding for checked state
  • INotifyPropertyChanged pattern
  • ItemContainerStyle for binding IsSelected

Item Checking and Selection

📄 Read: references/checking-and-selection.md

When to read: Managing item selection behavior, handling checked events, or implementing SelectAll functionality.

Topics covered:

  • Checking/unchecking items programmatically
  • IsCheckOnFirstClick property (single vs double-click)
  • SelectedItems collection management
  • SelectedItem property for current selection
  • Checking items on initialization
  • SelectAll and UnselectAll implementation
  • ItemChecked event handling
  • ItemCheckedEventArgs usage
  • Keyboard navigation (Space key)
  • Getting list of checked items

Grouping and Sorting

📄 Read: references/grouping-and-sorting.md

When to read: Organizing items into groups, sorting items alphabetically/numerically, or implementing hierarchical views.

Topics covered:

  • Grouping with CollectionView.GroupDescriptions
  • PropertyGroupDescription configuration
  • Group header selection state
  • Expanding/collapsing groups
  • Sorting with CollectionView.SortDescriptions
  • SortDescription properties (PropertyName, Direction)
  • Ascending and descending order
  • Multiple sort criteria
  • Combining grouping and sorting

Appearance and Customization

📄 Read: references/appearance-customization.md

When to read: Styling the control, customizing colors/fonts, changing checkbox placement, or applying themes.

Topics covered:

  • Foreground and Background properties
  • MouseOverBackground for hover effects
  • SelectedItemBackground styling
  • CheckBox alignment (left/right side)
  • CheckBoxPlacement property
  • Built-in visual styles and themes
  • Custom templates and styles
  • Border and padding customization
  • Font styling and text appearance
  • ItemContainerStyle customization

Layout Features

📄 Read: references/layout-features.md

When to read: Configuring control layout, adjusting dimensions, or managing scrolling behavior.

Topics covered:

  • Layout-related properties overview
  • Orientation settings (vertical/horizontal)
  • Item wrapping behavior
  • Scrolling configuration
  • Height and Width management
  • ScrollViewer settings
  • Item spacing and padding
  • Container sizing

Virtualization and Performance

📄 Read: references/virtualization.md

When to read: Optimizing performance for large datasets, reducing memory usage, or experiencing performance issues.

Topics covered:

  • VirtualizingStackPanel usage
  • Enabling UI virtualization
  • Performance optimization techniques
  • ScrollUnit configuration
  • Memory management benefits
  • Best practices for large collections
  • Virtualization limitations
  • When to use virtualization

Quick Start Example

Basic CheckListBox with Static Items

<Window xmlns:syncfusion="http://schemas.syncfusion.com/wpf">
    <Grid>
        <syncfusion:CheckListBox x:Name="checkListBox"
                                 Width="200"
                                 Height="300">
            <syncfusion:CheckListBoxItem Content="Mexico" />
            <syncfusion:CheckListBoxItem Content="Canada" />
            <syncfusion:CheckListBoxItem Content="Bermuda" />
            <syncfusion:CheckListBoxItem Content="Belize" />
            <syncfusion:CheckListBoxItem Content="Panama" />
        </syncfusion:CheckListBox>
    </Grid>
</Window>

CheckListBox with Data Binding

<syncfusion:CheckListBox ItemsSource="{Binding Countries}"
                         DisplayMemberPath="Name"
                         IsCheckOnFirstClick="True">
    <syncfusion:CheckListBox.ItemContainerStyle>
        <Style TargetType="syncfusion:CheckListBoxItem">
            <Setter Property="IsSelected" Value="{Binding IsChecked, Mode=TwoWay}" />
        </Style>
    </syncfusion:CheckListBox.ItemContainerStyle>
</syncfusion:CheckListBox>
// ViewModel
public class ViewModel : INotifyPropertyChanged
{
    public ObservableCollection<Country> Countries { get; set; }

    public ViewModel()
    {
        Countries = new ObservableCollection<Country>
        {
            new Country { Name = "Mexico", IsChecked = true },
            new Country { Name = "Canada", IsChecked = false },
            new Country { Name = "Bermuda", IsChecked = false }
        };
    }
}

// Model
public class Country : INotifyPropertyChanged
{
    private bool isChecked;
    public string Name { get; set; }
    public bool IsChecked
    {
        get => isChecked;
        set { isChecked = value; OnPropertyChanged(); }
    }
}

Common Patterns

Pattern 1: Handle Item Checked Events

// XAML
<syncfusion:CheckListBox ItemChecked="CheckListBox_ItemChecked" />

// Code-behind
private void CheckListBox_ItemChecked(object sender, ItemCheckedEventArgs e)
{
    var item = e.Item as CheckListBoxItem;
    MessageBox.Show($"{item.Content} is {(e.IsChecked ? "checked" : "unchecked")}");
}

Pattern 2: Get All Checked Items

// Get checked items from SelectedItems property
var checkedItems = checkListBox.SelectedItems;

foreach (var item in checkedItems)
{
    var checkListBoxItem = item as CheckListBoxItem;
    Console.WriteLine(checkListBoxItem.Content);
}

Pattern 3: Programmatically Check Items

// Add items to SelectedItems collection
checkListBox.SelectedItems.Add(countryModel1);
checkListBox.SelectedItems.Add(countryModel2);

Pattern 4: SelectAll Implementation

// Check all items
foreach (var item in checkListBox.Items)
{
    if (!checkListBox.SelectedItems.Contains(item))
    {
        checkListBox.SelectedItems.Add(item);
    }
}

Key Properties

PropertyTypeDescriptionDefault
ItemsSourceIEnumerableData source for itemsnull
DisplayMemberPathstringProperty path for display textnull
SelectedItemsIListCollection of checked itemsEmpty
SelectedItemobjectCurrently selected (focused) itemnull
IsCheckOnFirstClickboolCheck item on first click vs double-clicktrue
CheckBoxPlacementCheckBoxPlacementCheckbox position (Left/Right)Left
ForegroundBrushText colorBlack
BackgroundBrushBackground colorTransparent
MouseOverBackgroundBrushHover background colorSystem default
SelectedItemBackgroundBrushSelected item backgroundSystem default

Key Events

EventEventArgsDescription
ItemCheckedItemCheckedEventArgsRaised when item checked state changes
SelectionChangedSelectionChangedEventArgsRaised when selection changes

Common Use Cases

Use Case 1: Multi-Select Filter List

Display filterable items with checkboxes for multi-selection in search filters, report options, or settings panels.

Read: getting-started.md + data-binding.md

Use Case 2: Settings Configuration Panel

Create settings UI with multiple toggleable options, feature flags, or preference selections.

Read: checking-and-selection.md + appearance-customization.md

Use Case 3: Large Dataset with Grouping

Display thousands of checkable items organized by category with virtualization for performance.

Read: grouping-and-sorting.md + virtualization.md

Use Case 4: Permissions/Roles Manager

Implement role or permission selection UI with grouped capabilities and SelectAll per group.

Read: grouping-and-sorting.md + checking-and-selection.md

Use Case 5: Styled Checklist for Branding

Apply custom themes, colors, and checkbox positioning to match application branding.

Read: appearance-customization.md

Troubleshooting Quick Links

IssueNavigate To
Items not binding correctlydata-binding.md
Checked state not updatingchecking-and-selection.md
Performance issues with many itemsvirtualization.md
Styling not applyingappearance-customization.md
Groups not displayinggrouping-and-sorting.md

Next Steps: Choose a reference guide above based on your implementation needs, or start with getting-started.md for initial setup.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.9%
按下载量换算134

Claude

30.45%
按下载量换算111

Cursor

19.83%
按下载量换算72

Gemini CLI

9.56%
按下载量换算35

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills