summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls/GalleryPages/TableViewGallery.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls/GalleryPages/TableViewGallery.cs')
-rw-r--r--Xamarin.Forms.Controls/GalleryPages/TableViewGallery.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls/GalleryPages/TableViewGallery.cs b/Xamarin.Forms.Controls/GalleryPages/TableViewGallery.cs
new file mode 100644
index 00000000..92e5c1cc
--- /dev/null
+++ b/Xamarin.Forms.Controls/GalleryPages/TableViewGallery.cs
@@ -0,0 +1,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;
+ }
+ }
+}