Skip to content

syncfusion/wpf-ui-components-skills / skills/syncfusion-wpf-checkedlistbox

syncfusion-wpf-checkedlistbox

Verified

Implements the Syncfusion WPF CheckedListBox (CheckListBox) control for multi-select lists with checkboxes. Use this when adding checklist controls, checkbox-enabled item lists, or SelectAll functionality in WPF applications. Covers data binding, appearance customization, grouping/sorting, item selection handling, and virtualization.

references/data-binding-examples.md

View on GitHub
````markdown
# Data Binding — Examples and Patterns

This file contains the more complete model/viewmodel examples, converters, and XAML snippets moved out of the main binding reference.

## Model with INotifyPropertyChanged

```csharp
using System.ComponentModel;
using System.Runtime.CompilerServices;

public class Country : INotifyPropertyChanged
{
    private string _name;
    private bool _isChecked;

    public string Name { get => _name; set { _name = value; OnPropertyChanged(); } }
    public string Description { get; set; }
    public bool IsChecked { get => _isChecked; set { _isChecked = value; OnPropertyChanged(); } }

    public event PropertyChangedEventHandler PropertyChanged;
    protected void OnPropertyChanged([CallerMemberName] string name = null) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
}
```

## ViewModel with ObservableCollection

```csharp
using System.Collections.ObjectModel;

public class ViewModel
{
    public ObservableCollection<Country> Countries { get; set; }

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

## XAML: ItemTemplate + IsSelected binding

```xml
<syncfusion:CheckListBox ItemsSource="{Binding Countries}" DisplayMemberPath="Name">
  <syncfusion:CheckListBox.ItemContainerStyle>
    <Style TargetType="syncfusion:CheckListBoxItem">
      <Setter Property="IsSelected" Value="{Binding IsChecked, Mode=TwoWay}" />
    </Style>
  </syncfusion:CheckListBox.ItemContainerStyle>
</syncfusion:CheckListBox>
```

## Value Converter Example

```csharp
public class BoolToYesNoConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture) => (bool)value ? "Yes" : "No";
    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => value.ToString() == "Yes";
}
```

````
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 196kUpdated Claude CodeCodexVerifiedInstall