microsoft / xaml-standard

XAML Standard : a set of principles that drive XAML dialect alignment
Other
805 stars 50 forks source link

Add CollectionView #175

Open insinfo opened 7 years ago

insinfo commented 7 years ago

CollectionView A collection view displays an ordered collection of data items using standard or custom layouts. Similar to a table view, a collection view gets data from your custom data source objects and displays it using a combination of cell, layout, and supplementary views. A collection view can display items in a grid or in a custom layout that you design. Regardless of the layout style you choose, a collection view is best suited to display nonhierarchical, ordered data items.

collectionview 1 collectionview 2

crutkas commented 7 years ago

How is this different from #166 or #168?

rodrigoelp commented 7 years ago

Hi @crutkas, the biggest difference I can see from a UICollectionView and a WrapPanel or UniformPanel is the layout has been already defined for you in both the WrapPanel and the UniformPanel while the UICollectionView allows you to override that and provide your own.

Look at @insinfo example at the top. There are a series of elements with different heights (same width) and reordering the elements does not give you any empty or unused space in the UI as a WrapPanel would give you.

insinfo commented 7 years ago

@Rodrigoelp Exactly, very well described