2X faster development
The ultimate Xamarin UI toolkit to boost your development speed.
In SfListView, GridLayout arranges the item in a row based on the SpanCount property. The SpanCount can be adjust based on the view size of application either orientation is portrait or landscape. Refer the following example to adjust the SpanCount based on view size of application, C#
In the code example, the SpanCount is calculated by screen width and ItemSize property to layout the items. For example, the screen width is 300 and ItemSize is 150 in portrait mode, then SpanCount value would be 2. Screenshots: Click here to download the sample. |
2X faster development
The ultimate Xamarin UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.