# kanban-column-reordering

> Kanban board with drag-and-drop column reordering, custom header and card templates, and converters.

**Framework:** winui  **Component:** Kanban  **Variant:** column-reordering

## 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-column-reordering.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-column-reordering/Kanban.xaml

```xaml
﻿<Page
    x:Class="Kanban.Samples.ColumnReordering.Kanban"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:kanban="using:Syncfusion.UI.Xaml.Kanban"
    xmlns:local="using: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:GettingStartedViewModel />
        </Grid.DataContext>
        <kanban:SfKanban x:Name="kanban"
                         AllowColumnReorder="True"
                         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,Postponed" />
            <kanban:KanbanColumn HeaderText="In Progress"
                                 Categories="In Progress"
                                 MinimumCount="2">
                <kanban:KanbanColumn.ErrorBarSettings>
                    <kanban:KanbanErrorBarSettings MaximumValidationColor="Red" MinimumValidationColor="Yellow" />
                </kanban:KanbanColumn.ErrorBarSettings>
            </kanban:KanbanColumn>
            <kanban:KanbanColumn HeaderText="For Review"
                                 Categories="Review"
                                 MaximumCount="5">
                <kanban:KanbanColumn.ErrorBarSettings>
                    <kanban:KanbanErrorBarSettings MaximumValidationColor="Red" MinimumValidationColor="Yellow" />
                </kanban:KanbanColumn.ErrorBarSettings>
            </kanban:KanbanColumn>
            <kanban:KanbanColumn HeaderText="Done"
                                 Categories="Closed,Closed No Changes,Won't Fix"
                                 MinimumCount="2"
                                 MaximumCount="10">
                <kanban:KanbanColumn.ErrorBarSettings>
                    <kanban:KanbanErrorBarSettings MaximumValidationColor="Red" MinimumValidationColor="Yellow" />
                </kanban:KanbanColumn.ErrorBarSettings>
            </kanban:KanbanColumn>
        </kanban:SfKanban>
    </Grid>
</Page>
```
