# kanban-selection

> SfKanban with card selection, multi-select capability, and selection-driven UI state updates.

**Framework:** wpf  **Component:** Kanban  **Variant:** selection

## Get this item

**If you are an agent, fetch the JSON.** Source is inlined, so one request is enough and no tooling is required:

```
GET https://ai.syncfusion.com/r/wpf/kanban-selection.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.SfKanban.WPF
```

**Notes**

- Syncfusion release: 2026 Volume 3 (v35.1.37)
- The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md

## Source files

### src/components/kanban-selection/Kanban.xaml

```xaml
<UserControl x:Class="syncfusion.kanbandemos.wpf.Selection.Kanban"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:kanban="clr-namespace:Syncfusion.UI.Xaml.Kanban;assembly=Syncfusion.SfKanban.WPF"
        xmlns:local="clr-namespace:syncfusion.kanbandemos.wpf" Unloaded="OnSampleUnloaded">

    <UserControl.DataContext>
        <local:TaskDetails />
    </UserControl.DataContext>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Margin="10">
            <TextBlock Text="Selection Mode:" FontWeight="SemiBold" FontSize="12" VerticalAlignment="Center" Margin="0,0,10,0"/>
            <ComboBox SelectedIndex="0" ItemsSource="{Binding SelectionMode}" Margin="0,0,0,0"
                      FontSize="12" x:Name="selectionModeComboBox" SelectionChanged="OnSelectionModeChanged" Width="150"/>
        </StackPanel>

        <kanban:SfKanban x:Name="kanban" Grid.Row="1"
                         AutoGenerateColumns="False"
                         ItemsSource="{Binding Tasks}"
                         IsToolTipEnabled="True">
            <kanban:SfKanban.IndicatorColorPalette>
                <kanban:ColorMapping Key="High" Color="#FFECB93C" />
                <kanban:ColorMapping Key="Normal" Color="#FF57B94C" />
                <kanban:ColorMapping Key="Low" Color="#FF5187C6" />
            </kanban:SfKanban.IndicatorColorPalette>

            <kanban:KanbanColumn Title="To Do" Categories="Open,Postponed" />

            <kanban:KanbanColumn Title="In Progress" Categories="InProgress" IsExpanded="True" MaximumLimit="2">
                <kanban:KanbanColumn.ErrorBarSettings>
                    <kanban:ErrorBarSettings MaxValidationColor="Red" MinValidationColor="Yellow" />
                </kanban:KanbanColumn.ErrorBarSettings>
            </kanban:KanbanColumn>
            <kanban:KanbanColumn Title="For Review" Categories="Review" MaximumLimit="5">
                <kanban:KanbanColumn.ErrorBarSettings>
                    <kanban:ErrorBarSettings MaxValidationColor="Red" MinValidationColor="Yellow" />
                </kanban:KanbanColumn.ErrorBarSettings>
            </kanban:KanbanColumn>
            <kanban:KanbanColumn Title="Done" AllowDrag="False"
                                 Categories="Closed,Closed NoChanges,Won't Fix"
                                 MaximumLimit="10" MinimumLimit="2">
                <kanban:KanbanColumn.ErrorBarSettings>
                    <kanban:ErrorBarSettings MaxValidationColor="Red" MinValidationColor="Yellow" />
                </kanban:KanbanColumn.ErrorBarSettings>
            </kanban:KanbanColumn>
        </kanban:SfKanban>
    </Grid>
</UserControl>

```
