DEV Community

David Ortinau for .NET

Posted on

2

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

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay