Skip to content

Commit 8e467e0

Browse files
Merge pull request #3592 from Syncfusion-Content/development
DOCINFRA-2341_merged_using_automation
2 parents 84000f8 + 4fdccd3 commit 8e467e0

File tree

8 files changed

+311
-131
lines changed

8 files changed

+311
-131
lines changed

MAUI/Kanban-Board/Cards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ var cardTemplate = new DataTemplate(() =>
8383
WidthRequest = 250,
8484
Orientation = StackOrientation.Vertical,
8585
Padding = new Thickness(10),
86-
BackgroundColor = Color.Gray
86+
BackgroundColor = Colors.Gray
8787
};
8888

8989
HorizontalStackLayout titleLayout = new HorizontalStackLayout();

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)