+1 vote
in C Sharp by
Q. What is is the difference between ListView & TableView in Xamarin?

1 Answer

0 votes
by
edited by

The ListView and TableView controls are so similar, you can think of them as a single control. The major difference between the two is the manner in which they lay out their items, and it’s easy to change the layout so each control emulates the other.

  • The ListView control displays its data stacked vertically, much like a standard listbox. Use this control to display an ordered list of data, especially long lists that require scrolling like a list of email messages, a list of contacts, or search results.

  • The TableView control displays its data stacked horizontally in rows (although you can alter this behavior and have it displayed in columns first, as well). You use this control when you need more space for rich visualization of each item to be displayed.

One of the big differences is ListView provides you a ItemsSource and a Itemtemplate and TableView does not. So items must be added as children manually.

Related questions

0 votes
asked Aug 20, 2020 in C Sharp by Hodge
0 votes
+1 vote
asked Aug 20, 2020 in C Sharp by RShastri
...