I am trying to implement a launcher screen for my Xamarin.Forms app. As such it contains several Grid
s of icon buttons, each grid within a CarouselView
pane. The icon button cells will be of a fixed size.
Typically, I will size a grid with a known number of rows and columns, and the cell size is calculated accordingly. Here I need to go the opposite direction, from a known cell size to a calculated number of rows and columns. The more I look at it, the more it seems I may end up needing to Create a Custom Layout in Xamarin.Forms, where I see things like using VisualElement.Measure to determine parent element sizes from children elements.
Before I chase that option down though, does anyone know if/how I can get the number of fixed-size cells a Grid
can contain before it is rendered?