blob: 92e5c1cc59ee2da8f7c384f7119afd146e186c59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
namespace Xamarin.Forms.Controls
{
internal class TableViewGallery : ContentPage
{
public TableViewGallery () {
var section = new TableSection ("Section One") {
new ViewCell { View = new Label { Text = "View Cell 1" } },
new ViewCell { View = new Label { Text = "View Cell 2" } }
};
var root = new TableRoot ("Table") {
section
};
var tableLayout = new TableView {
Root = root,
RowHeight = 100
};
Content = tableLayout;
}
}
}
|