I am quite new to Xamarin Forms, so perhaps I am overlooking something obvious. I am trying to display a list of items (in a list or grid) using pagination instead of a vertical scrollbar, i.e. if a page fits 10 items and a collection has 50 items, then there will 5 pages with Next/Previous buttons.
But how am I supposed to find out how many items fit in one page? I've found references to DisplayMetrics class, but it seems to be Android-only. So what is the recommended approach to deal with such scenarios when an application needs to do perform certain action based on screen resolution? It would be logical to expect Forms to have cross-platform approach to this.
Thanks in advance