Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

TableView vs Grid vs StackLayout / ListView - best practice ?

$
0
0

Hi all

In my app, I have used StackLayout, Scrollview, ListView and various controls until now.

I have seen, that there are various other layouts / views, but unfortunately, the documentation (api-decription) is more than thin (“Documentation for this section has not yet been entered”)…

Therfore I hope I receive some good answers here from the cracks…;-)

Which advantages does TableView have vs StackLayout / ListView…?

Does Hasunvenrows work in TableView also under iOS?

Does TableView automatically rearrange the elements, based on the available space?

Short example: I have an TableView with 4 colums and a few rows:

  • On iPhone in portrait-orientation, the is only space to show one of the colums, on iPhone in landscape-orientation, there is space to show 2 of the colums, on iPad there is space to show all 4 colums (side by side)
  • Does TableView handle this automatically (on iPhone portrait: show the 4 columns of the first row vertically, on iPhone landscape show the first two colums side by side, on IPad show all 4 columns side by side)?

Is it possible to become the indexes of the row and column, if a cell is tapped (e.g. 2,3 = 3. row, 4. column)?

How to sort in Grid here (Grid and/vs TableView)?

Use-cases for TableView and Grid?

Sorry for the newbie-questions and thank’s for the crack-answers ;-).


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>