CollectionView: conditional for last element

Ayleen 21 Reputation points
2022-12-07T13:12:58.003+00:00

Is there a possibility to address the last element in a CollectionView in order to style that differently?

I use a BoxView with height 1 as a separator under the list items, but I do not want to have it under the last element.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,594 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.