CollectionView is a flexible and performant view for presenting lists of data using different layout specifications.
CollectionView is populated with data by setting its
ItemsSource property to any collection that implements
IEnumerable. The appearance of each item in the list can be defined by setting the
ItemTemplate property to a
By default, a
CollectionView will display its items in a vertical list. However, vertical and horizontal lists and grids can be specified.
CollectionView selection is disabled. However, single and multiple selection can be enabled.
CollectionView, an empty view can be specified that provides feedback to the user when no data is available for display. The empty view can be a string, a view, or multiple views.
When a user swipes to initiate a scroll, the end position of the scroll can be controlled so that items are fully displayed. In addition,
CollectionView defines two
ScrollTo methods, that programmatically scroll items into view. One of the overloads scrolls the item at the specified index into view, while the other scrolls the specified item into view.
CollectionView can display correctly grouped data by setting its
IsGrouped property to
Submit and view feedback for