Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 19 additions & 16 deletions wpf/Kanban-Board/Getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ public class ViewModel
{% endhighlight %}
{% endtabs %}

![wpf-kanban-board-column-using-default-model](sfkanban_images/wpf-kanban-board-column-using-default-model.png)

N> View the sample in [`GitHub`](https://github.com/SyncfusionExamples/Getting-started-in-SfKanban-WPF).

#### Creating the custom model tasks with data mapping
Expand All @@ -214,7 +216,7 @@ Alternatively, you can manually define columns by setting [`AutoGenerateColumns`
Let’s look at the practical code example:

{% tabs %}
{% highlight XAML hl_lines="2 3 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27" %}
{% highlight XAML hl_lines="2 3 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26" %}

<syncfusion:SfKanban x:Name="kanban"
ColumnMappingPath="Status"
Expand All @@ -224,23 +226,22 @@ Let’s look at the practical code example:
</syncfusion:SfKanban.DataContext>
<syncfusion:SfKanban.CardTemplate>
<DataTemplate>
<StackPanel Width="250"
Orientation="Vertical"
Background="Gray">
<StackPanel Orientation="Horizontal">
<Border BorderBrush="Black"
BorderThickness="1"
CornerRadius="3"
Background="#F3CFCE">
<StackPanel Margin="10">
<TextBlock Text="{Binding Title}"
Foreground="Silver"
HorizontalAlignment="Stretch">
</TextBlock>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBox Text="{Binding Description}"
Width="150"
FontSize="14"
Foreground="Silver"
TextWrapping="Wrap" />
TextAlignment="Center"
FontWeight="Bold"
FontSize="14" />
<TextBlock Text="{Binding Description}"
TextAlignment="Center"
FontSize="12"
TextWrapping="Wrap"
Margin="5" />
</StackPanel>
</StackPanel>
</Border>
</DataTemplate>
</syncfusion:SfKanban.CardTemplate>
</syncfusion:SfKanban>
Expand Down Expand Up @@ -304,6 +305,8 @@ public class ViewModel
{% endhighlight %}
{% endtabs %}

![wpf-kanban-board-column-using-custom-model](sfkanban_images/wpf-kanban-board-column-using-custom-model.png)

You can also set [`AutoGenerateColumns`](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Kanban.SfKanban.html#Syncfusion_UI_Xaml_Kanban_SfKanban_AutoGenerateColumns) property to true in which you don’t need to define the columns as mentioned in the above example. This will create columns depending on the ColumnMappingPath property for all the distinct values in ItemsSource.

N>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.