You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MAUI/Kanban-Board/Events.md
+105-1Lines changed: 105 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,111 @@ public class KanbanViewModel
146
146
*[`Cancel`](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Kanban.KanbanDragStartEventArgs.html#Syncfusion_Maui_Kanban_KanbanDragStartEventArgs_Cancel) - Used to cancel the drag action.
147
147
*[`Data`](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Kanban.KanbanDragEventArgs.html#Syncfusion_Maui_Kanban_KanbanDragEventArgs_Data) - Used to get the underlying model of the card.
148
148
*[`SourceColumn`](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Kanban.KanbanDragEventArgs.html#Syncfusion_Maui_Kanban_KanbanDragEventArgs_SourceColumn) - Used to get the source column of card.
149
-
*[`SourceIndex`](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Kanban.KanbanDragEventArgs.html#Syncfusion_Maui_Kanban_KanbanDragEventArgs_SourceIndex) - Used to get the index of the card in source column.
149
+
*[`SourceIndex`](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Kanban.KanbanDragEventArgs.html#Syncfusion_Maui_Kanban_KanbanDragEventArgs_SourceIndex) - Used to get the index of the card in source column.
150
+
*`KeepCard` - Determines whether the original card remains in the source column during a drag operation. When set to `true`, the card stays in its original column while being dragged, allowing repeated drag-and-drop actions without relocating the card. A preview of the card is generated during the drag.
151
+
152
+
{% tabs %}
153
+
{% highlight XAML hl_lines="3" %}
154
+
155
+
<kanban:SfKanban x:Name="kanban"
156
+
ItemsSource="{Binding TaskDetails}"
157
+
DragStart="OnKanbanCardDragStart">
158
+
<kanban:SfKanban.BindingContext>
159
+
<local:ViewModel/>
160
+
</kanban:SfKanban.BindingContext>
161
+
</kanban:SfKanban>
162
+
163
+
{% endhighlight %}
164
+
{% highlight C# hl_lines="2 6" %}
165
+
166
+
this.kanban.ItemsSource = new ViewModel().TaskDetails;
0 commit comments