Skip to content

Commit 80c5f9f

Browse files
991373 - Update the sorting feature UG contents.
1 parent 5f54727 commit 80c5f9f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

wpf/Kanban-Board/Sorting.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ This example demonstrates how card positions are updated based on sorting config
6464
<TextBlock Text="•"
6565
FontSize="14"
6666
FontWeight="Bold"
67-
Foreground="Orange"
67+
Foreground="#FF0000"
6868
VerticalAlignment="Center"
6969
HorizontalAlignment="Center" />
7070
<TextBlock Text="{Binding Priority}"
7171
FontSize="14"
7272
FontWeight="Bold"
73-
Foreground="Orange"
73+
Foreground="#003366"
7474
VerticalAlignment="Center"
7575
HorizontalAlignment="Left"
7676
Height="20" />
@@ -153,13 +153,13 @@ public class SortingViewModel
153153
public ObservableCollection<CardDetails> Cards { get; set; }
154154
}
155155

156+
{% endhighlight %}
157+
{% endtabs %}
158+
156159
N>
157160
* To apply sorting after a drop operation, handle the `CardDragEnd` event and explicitly call the `RefreshKanbanColumn` method. This ensures the column updates to reflect the new card order based on the defined sorting logic.
158161
* When using a custom data model, the default card UI is not applicable. To render the card content, you must define a custom `DataTemplate` using the `CardTemplate` property.
159162

160-
{% endhighlight %}
161-
{% endtabs %}
162-
163163
### Index-Based Sorting
164164

165165
The index-based approach in the Kanban control allows cards to be dropped at precise positions within a column. Upon dropping, the card's index is updated based on the index of the previous card. Additionally, the index of the next card is incremented relative to the drop position to maintain continuous ordering.

0 commit comments

Comments
 (0)