@@ -193,6 +193,8 @@ public class ViewModel
193193{% endhighlight %}
194194{% endtabs %}
195195
196+ ![ wpf-kanban-board-column-using-default-model] ( sfkanban_images/wpf-kanban-board-column-using-default-model.png )
197+
196198N> View the sample in [ ` GitHub ` ] ( https://github.com/SyncfusionExamples/Getting-started-in-SfKanban-WPF ) .
197199
198200#### Creating the custom model tasks with data mapping
@@ -214,7 +216,7 @@ Alternatively, you can manually define columns by setting [`AutoGenerateColumns`
214216Let’s look at the practical code example:
215217
216218{% tabs %}
217- {% 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 " %}
219+ {% 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" %}
218220
219221<syncfusion: SfKanban x: Name ="kanban"
220222 ColumnMappingPath="Status"
@@ -224,23 +226,22 @@ Let’s look at the practical code example:
224226 </syncfusion: SfKanban .DataContext>
225227 < syncfusion:SfKanban.CardTemplate >
226228 <DataTemplate >
227- <StackPanel Width="250"
228- Orientation="Vertical"
229- Background="Gray">
230- <StackPanel Orientation =" Horizontal " >
229+ <Border BorderBrush="Black"
230+ BorderThickness="1"
231+ CornerRadius="3"
232+ Background="#F3CFCE">
233+ <StackPanel Margin =" 10 " >
231234 <TextBlock Text="{Binding Title}"
232- Foreground="Silver"
233- HorizontalAlignment="Stretch">
234- </TextBlock >
235- </StackPanel >
236- <StackPanel Orientation =" Horizontal " >
237- <TextBox Text="{Binding Description}"
238- Width="150"
239- FontSize="14"
240- Foreground="Silver"
241- TextWrapping="Wrap" />
235+ TextAlignment="Center"
236+ FontWeight="Bold"
237+ FontSize="14" />
238+ <TextBlock Text="{Binding Description}"
239+ TextAlignment="Center"
240+ FontSize="12"
241+ TextWrapping="Wrap"
242+ Margin="5" />
242243 </StackPanel >
243- </StackPanel >
244+ </Border >
244245 </DataTemplate >
245246 </syncfusion: SfKanban .CardTemplate>
246247</syncfusion: SfKanban >
@@ -304,6 +305,8 @@ public class ViewModel
304305{% endhighlight %}
305306{% endtabs %}
306307
308+ ![ wpf-kanban-board-column-using-custom-model] ( sfkanban_images/wpf-kanban-board-column-using-custom-model.png )
309+
307310You 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.
308311
309312N>
0 commit comments