0
votes

Is it possible to write a custom renderer for the Xamarin.Forms List, that renders two rows next to each other, so basically like a bound grid view

-------------
Item1 | Item2
-----------
Item3 | Item4
-------------
Item5 ...

Thanks, Nikolai

1

1 Answers

0
votes

You don't need to use custom renderers in Xamarin.Forms. You can use the GridView component in Xamarin Forms XLabs. Setting MaxColumns as 2 will render 2 columns in a row

<ctrl:GridView 
 HorizontalOptions="FillAndExpand"
  VerticalOptions="FillAndExpand"
  x:Name="GrdView" RowSpacing="5"
  ColumnSpacing="5" MaxColumns="2"
  TileHeight="120"
   CommandParameter="{Binding}"
   Command="{Binding StartTaskCommand}"
   IsClippedToBounds="False">
  </ctrl:GridView>

Here is a tutorial on how to use that.