Search code examples
c#xamlxamarinxamarin.formsdatatemplate

ItemsSource and DataTemplate for Grid in Xamarin Forms


I have an issue with Grid and template. For example. I have a Grid with 3 columns and 2 rows. And i have a List, which has links to images. And i want to put images from 0 to 6 using tempalate like ListView. Android GridView looks like that fits for my issue, but maybe there are more solutions for this issue. How i can implement this.


Solution

  • You can take a look into XLabs gridview they made something that you need, You can set itemtemplate and itemsource.

    https://github.com/XLabs/Xamarin-Forms-Labs/wiki/GridView