Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.7
-
None
Description
For styling purposes, it would sometimes be useful to know if a delegate is the first or last item in a view. Currently, the only way to determine if a delegate is the first is by comparing its index to 0, which doesn't work reliably inside ItemDelegate styling since index may not be available when using required properties. Determining the last delegate is even harder since it requires comparing index to the ListView's count.
I would expose this in a way similar to isCurrentItem, by adding properties to the view attached type. For ListView this is straightforward, basically isFirstItem and isLastItem. For other views this might be a little more tricky since you might want to know if the delegate is first/last in a row/column.