Bind a multiple array to a listview

riccardo d'aria 1 Reputation point

I need to bind to a listview a multiple array is it possible.

Other INFO please, is possible to scroll ohorizontally a lystview???

I had a very long day googling on those topic.


A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,313 questions
Microsoft Technologies based on the .NET software framework.
3,527 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 37,581 Reputation points Microsoft Vendor


    For ListView, its ItemsSource only supports one IEnumerable object:

    A ListView is populated with data using the ItemsSource property, which can accept any collection implementing IEnumerable. - Quoted from ListView Data Sources.

    Therefore, you can not bind multiple arrays to it.

    Other INFO please, is possible to scroll ohorizontally a lystview???

    ListView does not provide APIs to change the scroll direction of the view, if you want to implement this feature, it is recommended that you use CollectionView.

    The CollectionView is a flexible and performant view for presenting lists of data using different layout specifications.

    For CollectionView, you could implement it via the following code:

    <CollectionView ItemsLayout="HorizontalList">

    Please refer to Horizontal list for more details.

    Best Regards,

    Alec Liu.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments