Xamarin.Forms.TableView Class
A Xamarin.Forms.View that holds rows of Xamarin.Forms.Cell elements.

See Also: TableView Members

Syntax

[Xamarin.Forms.ContentProperty("Root")]
public class TableView : View

Remarks

A Xamarin.Forms.TableView has a Xamarin.Forms.TableRoot as its TableView.Root property. The Xamarin.Forms.TableView.TableRoot is a type of Xamarin.Forms.TableSection.

The following example shows a basic table with two sections.

C# Example

return new ContentPage {
	Content = new TableView {
		Intent = TableIntent.Form,
		Root = new TableRoot ("Table Title") {
			new TableSection ("Section 1 Title") {
				new TextCell {
					Text = "TextCell Text",
					Detail = "TextCell Detail"
				},
				new EntryCell {
					Label = "EntryCell:",
					Placeholder = "default keyboard",
					Keyboard = Keyboard.Default
				}
			},
			new TableSection ("Section 2 Title") {
				new EntryCell {
					Label = "Another EntryCell:",
					Placeholder = "phone keyboard",
					Keyboard = Keyboard.Telephone
				},
				new SwitchCell {
					Text = "SwitchCell:"
				}
			}
		}
	}
};          
          

The Xamarin.Forms.TableView class has the following XAML properties:

PropertyValue
HasUnevenRows

true or false, to indicate whether rows in the table view will specify their own height.

Intent

Data, Form, Menu, or Settings.

RowHeight

Horizontal or Vertical, to indicate the scroll direction.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0