# kanban-searching-filtering

> Kanban board with search and filter across columns, custom headers, and card templates.

**Framework:** winui  **Component:** Kanban  **Variant:** searching-filtering

## 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/winui/kanban-searching-filtering.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.Kanban.WinUI
```

**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-searching-filtering/Kanban.xaml

```xaml
﻿<Page
    x:Class="Kanban.Samples.SearchingFiltering.Kanban"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Kanban"
    xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
    xmlns:kanban="using:Syncfusion.UI.Xaml.Kanban">

    <Grid x:Name="grid">
        <Grid.Resources>
            <local:StrokeBrushConverter x:Key="StrokeBrushConverter" />

            <DataTemplate x:Key="KanbanCardTemplate">
                <Border
                    MinHeight="115"
                    CornerRadius="6"
                    BorderThickness="1"
                    BorderBrush="#595959"
                    Background="#454545">

                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="4" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>

                        <!-- Blue left-side strip -->
                        <Border
                            Grid.Column="0"
                            Margin="0,2,0,2"
                            CornerRadius="2"
                            Background="#0089D6" />

                        <!-- Card values -->
                        <StackPanel
                            Grid.Column="1"
                            Margin="12,10"
                            Spacing="6">

                            <StackPanel
                                Orientation="Horizontal"
                                Spacing="8">

                                <TextBlock
                                    Text="{Binding Id}"
                                    FontSize="11"
                                    Foreground="#AFAFAF"
                                    VerticalAlignment="Center" />

                                <TextBlock
                                    Text="{Binding Title}"
                                    FontSize="13"
                                    FontWeight="SemiBold"
                                    Foreground="White"
                                    TextWrapping="Wrap" />
                            </StackPanel>

                            <TextBlock
                                Text="{Binding Description}"
                                FontSize="11"
                                Foreground="#E0E0E0"
                                TextWrapping="Wrap"
                                MaxLines="2"
                                TextTrimming="WordEllipsis" />

                            <ItemsControl
                                ItemsSource="{Binding Tags}"
                                Margin="0,4,0,0">

                                <ItemsControl.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <StackPanel
                                            Orientation="Horizontal"
                                            Spacing="4" />
                                    </ItemsPanelTemplate>
                                </ItemsControl.ItemsPanel>

                                <ItemsControl.ItemTemplate>
                                    <DataTemplate>
                                        <Border
                                            Padding="6,3"
                                            CornerRadius="4"
                                            Background="#555555">

                                            <TextBlock
                                                Text="{Binding}"
                                                FontSize="10"
                                                Foreground="White" />
                                        </Border>
                                    </DataTemplate>
                                </ItemsControl.ItemTemplate>
                            </ItemsControl>
                        </StackPanel>

                        <!-- Priority-colored bottom-right corner -->
                        <Path
                            Grid.ColumnSpan="2"
                            Width="20"
                            Height="20"
                            HorizontalAlignment="Right"
                            VerticalAlignment="Bottom"
                            Stretch="Fill"
                            Fill="{Binding IndicatorColorKey,
                                Converter={StaticResource StrokeBrushConverter}}"
                            Data="M 20,0 L 20,20 L 0,20 Z" />
                    </Grid>
                </Border>
            </DataTemplate>
        </Grid.Resources>
        <Grid.DataContext>
            <local:SwimlaneViewModel />
        </Grid.DataContext>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal" Margin="10" Spacing="10">
            <TextBox x:Name="searchTextBox"
                     Width="250"
                     FontSize="12"
                     Header="Search"
                     PlaceholderText="Search by title, summary or assignee"
                     TextChanged="OnSearchTextChanged"/>
            <ComboBox x:Name="categoryComboBox"
                      Width="150"
                      FontSize="12"
                      Header="Category"
                      SelectedIndex="0"
                      SelectionChanged="OnCategorySelectionChanged">
                <ComboBoxItem Content="All"/>
                <ComboBoxItem Content="Open"/>
                <ComboBoxItem Content="In Progress"/>
                <ComboBoxItem Content="Review"/>
                <ComboBoxItem Content="Closed"/>
            </ComboBox>
        </StackPanel>

        <kanban:SfKanban x:Name="kanban" Grid.Row="1"
                         AutoGenerateColumns="False"
                         ColumnMappingPath="Category"
                         CardTemplate="{StaticResource KanbanCardTemplate}"
                         ItemsSource="{Binding TaskDetails}">
            <kanban:SfKanban.IndicatorColorPalette>
                <kanban:KanbanColorMapping Key="Low" Color="#0F7B0F"/>
                <kanban:KanbanColorMapping Key="Normal" Color="#FFB900"/>
                <kanban:KanbanColorMapping Key="High" Color="#C42B1C"/>
            </kanban:SfKanban.IndicatorColorPalette>
            <kanban:KanbanColumn HeaderText="To Do"
                                 Categories="Open"
                                 AllowDrag="True" />
            <kanban:KanbanColumn HeaderText="In Progress"
                                 Categories="In Progress"
                                 IsExpanded="True"
                                 MinimumCount="2"
                                 AllowDrag="True">
                <kanban:KanbanColumn.ErrorBarSettings>
                    <kanban:KanbanErrorBarSettings MaximumValidationColor="Red"
                                                  MinimumValidationColor="Yellow" />
                </kanban:KanbanColumn.ErrorBarSettings>
            </kanban:KanbanColumn>
            <kanban:KanbanColumn HeaderText="For Review"
                                 Categories="Review"
                                 MaximumCount="5"
                                 AllowDrag="True">
                <kanban:KanbanColumn.ErrorBarSettings>
                    <kanban:KanbanErrorBarSettings MaximumValidationColor="Red"
                                                  MinimumValidationColor="Yellow" />
                </kanban:KanbanColumn.ErrorBarSettings>
            </kanban:KanbanColumn>
            <kanban:KanbanColumn HeaderText="Done"
                                 AllowDrag="True"
                                 Categories="Closed"
                                 MinimumCount="2"
                                 MaximumCount="10">
                <kanban:KanbanColumn.ErrorBarSettings>
                    <kanban:KanbanErrorBarSettings MaximumValidationColor="Red"
                                                  MinimumValidationColor="Yellow" />
                </kanban:KanbanColumn.ErrorBarSettings>
            </kanban:KanbanColumn>
        </kanban:SfKanban>
    </Grid>
</Page>
```
