DEV Community

David Ortinau for .NET

Posted on

BindableLayout turns any layout into an item repeater in Xamarin.Forms

When you need to quickly display a set of data, especially when the items are small and don't require virtualization, then with BindableLayout and the associated attached properties you can turn any layout into an item repeater. This is not only ideal for small sets of data content that is usually display only, but also when your UX doesn't require any of the bells and whistles provided by other controls such as CollectionView, CarouselView, or ListView.

My custom layout used here is a modified version of the UniformGrid in Xamarin Community Toolkit. It simply (crudely?) displays a uniform grid with priority given to the orientation and count provided.

Resources:

GitHub logo davidortinau / Xappy

A mobile app to track Xamarin news and explore all the goodness that is .NET for Mobile developers

Top comments (0)