Skip to content

Commit 4fdccd3

Browse files
Merge pull request #3591 from syncfusion-content/Kanban-UG-Column-content-review-correction-dev
977013-[Dev] MAUI Kanban UG notes content added in Column.md
2 parents 0f1ee33 + b8489e7 commit 4fdccd3

File tree

1 file changed

+53
-2
lines changed

1 file changed

+53
-2
lines changed

MAUI/Kanban-Board/Column.md

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ To change the background color of a column, use the `Background` property of the
312312
SfKanban kanban = new SfKanban();
313313
KanbanViewModel viewModel = new KanbanViewModel();
314314
kanban.AutoGenerateColumns = false;
315-
kanban.ItemsSource = viewModel.Cards;
316315

317316
kanban.Columns.Add(new KanbanColumn
318317
{
@@ -342,6 +341,8 @@ kanban.Columns.Add(new KanbanColumn
342341
Background = Color.FromArgb("#DCEDDC")
343342
});
344343

344+
kanban.ItemsSource = viewModel.Cards;
345+
345346
this.Content = kanban;
346347

347348
{% endhighlight %}
@@ -564,6 +565,55 @@ The following example shows how to define a custom **no card** template using a
564565
SfKanban kanban = new SfKanban();
565566
KanbanViewModel viewModel = new KanbanViewModel();
566567
kanban.AutoGenerateColumns = false;
568+
569+
kanban.Columns.Add(new KanbanColumn
570+
{
571+
Title = "To Do",
572+
Categories = new List<object> { "Open", "Postponed" },
573+
Background = Color.FromArgb("#D6EAF5")
574+
});
575+
576+
kanban.Columns.Add(new KanbanColumn
577+
{
578+
Title = "In Progress",
579+
Categories = new List<object> { "In Progress" },
580+
Background = Color.FromArgb("#FFF8DC")
581+
});
582+
583+
kanban.Columns.Add(new KanbanColumn
584+
{
585+
Title = "Code Review",
586+
Categories = new List<object> { "Code Review" },
587+
Background = Color.FromArgb("#FFE4E1"),
588+
NoCardTemplate = new DataTemplate(() =>
589+
{
590+
return new VerticalStackLayout
591+
{
592+
VerticalOptions = LayoutOptions.Center,
593+
Children =
594+
{
595+
new Label
596+
{
597+
Text = "No code reviews pending",
598+
Margin = new Thickness(0, 8, 0, 0),
599+
HorizontalOptions = LayoutOptions.Center,
600+
VerticalOptions = LayoutOptions.Center,
601+
FontSize = 14,
602+
FontAttributes = FontAttributes.Bold,
603+
TextColor = Colors.Black
604+
}
605+
}
606+
};
607+
})
608+
});
609+
610+
kanban.Columns.Add(new KanbanColumn
611+
{
612+
Title = "Done",
613+
Categories = new List<object> { "Closed" },
614+
Background = Color.FromArgb("#DCEDDC")
615+
});
616+
567617
kanban.ItemsSource = viewModel.Cards;
568618
this.Content = kanban;
569619

@@ -785,7 +835,6 @@ The .NET MAUI Kanban control supports styling the placeholder area, where cards
785835
SfKanban kanban = new SfKanban();
786836
KanbanViewModel viewModel = new KanbanViewModel();
787837
kanban.AutoGenerateColumns = false;
788-
kanban.ItemsSource = viewModel.Cards;
789838

790839
KanbanPlaceholderStyle placeholderStyle = new KanbanPlaceholderStyle
791840
{
@@ -830,6 +879,8 @@ kanban.Columns.Add(new KanbanColumn
830879
PlaceholderStyle = placeholderStyle
831880
});
832881

882+
kanban.ItemsSource = viewModel.Cards;
883+
833884
this.Content = kanban;
834885

835886
{% endhighlight %}

0 commit comments

Comments
 (0)