syncfusion/wpf-ui-components-skills / skills/syncfusion-wpf-checkedlistbox
syncfusion-wpf-checkedlistbox
VerifiedImplements 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 12.0 KB |
| references/appearance-customization-examples.md | markdown | 3.1 KB |
| references/appearance-customization.md | markdown | 886 B |
| references/checking-and-selection-advanced.md | markdown | 2.2 KB |
| references/checking-and-selection.md | markdown | 7.3 KB |
| references/data-binding-examples.md | markdown | 2.0 KB |
| references/data-binding.md | markdown | 10.3 KB |
| references/getting-started-extras.md | markdown | 2.1 KB |
| references/getting-started.md | markdown | 10.4 KB |
| references/grouping-and-sorting-examples.md | markdown | 1.5 KB |
| references/grouping-and-sorting.md | markdown | 11.7 KB |
| references/layout-features.md | markdown | 3.0 KB |
| references/virtualization.md | markdown | 13.5 KB |
references/appearance-customization-examples.md
View on GitHub````markdown
# Appearance and Customization — Extended Examples
This companion file contains the more verbose examples, templates, and troubleshooting content moved out of `appearance-customization.md` to reduce duplication and file length.
## Color and Background Examples
### Foreground and Background
```xml
<syncfusion:CheckListBox Foreground="#1976D2" Background="White">
<syncfusion:CheckListBoxItem Content="Mexico" />
<syncfusion:CheckListBoxItem Content="Canada" />
<syncfusion:CheckListBoxItem Content="Bermuda" />
</syncfusion:CheckListBox>
```
```csharp
checkListBox.Foreground = Brushes.DodgerBlue;
checkListBox.Background = Brushes.White;
```
### Gradient Background
```xml
<syncfusion:CheckListBox>
<syncfusion:CheckListBox.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#E3F2FD" Offset="0" />
<GradientStop Color="#BBDEFB" Offset="1" />
</LinearGradientBrush>
</syncfusion:CheckListBox.Background>
</syncfusion:CheckListBox>
```
## Item Templates and Container Styles
### ItemTemplate with icon and subtitle
```xml
<syncfusion:CheckListBox ItemsSource="{Binding Countries}">
<syncfusion:CheckListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Image Source="{Binding FlagImage}" Width="24" Height="16" Margin="0,0,8,0" />
<StackPanel>
<TextBlock Text="{Binding Name}" FontWeight="Bold" />
<TextBlock Text="{Binding Region}" FontSize="10" Foreground="Gray" />
</StackPanel>
</StackPanel>
</DataTemplate>
</syncfusion:CheckListBox.ItemTemplate>
</syncfusion:CheckListBox>
```
### ItemContainerStyle: selection binding and hover
```xml
<syncfusion:CheckListBox>
<syncfusion:CheckListBox.ItemContainerStyle>
<Style TargetType="syncfusion:CheckListBoxItem">
<Setter Property="IsSelected" Value="{Binding IsChecked, Mode=TwoWay}" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#F5F5F5" />
</Trigger>
</Style.Triggers>
</Style>
</syncfusion:CheckListBox.ItemContainerStyle>
</syncfusion:CheckListBox>
```
## ControlTemplate Example
```xml
<syncfusion:CheckListBox>
<syncfusion:CheckListBox.Template>
<ControlTemplate TargetType="syncfusion:CheckListBox">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4">
<ScrollViewer Padding="{TemplateBinding Padding}">
<ItemsPresenter />
</ScrollViewer>
</Border>
</ControlTemplate>
</syncfusion:CheckListBox.Template>
</syncfusion:CheckListBox>
```
## Troubleshooting (concise)
- If colors don't apply, verify theme packages and that implicit styles aren't overriding local setters.
- If `CheckBoxPlacement` doesn't seem to work, check whether your Syncfusion version exposes `CheckBoxAlignment` instead; prefer the property that matches your package version.
- When ItemTemplate isn't visible, remove `DisplayMemberPath` or ensure the `ItemsSource` binding matches your ViewModel.
````
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| 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: 196k | Updated | Claude CodeCodex | Verified | Install |