summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls/GalleryPages/CellsGalleries/UnEvenViewCellGallery.cs
blob: 00c2980fb9089cd241e6127bcc14e755119c16e8 (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
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xamarin.Forms.Controls
{
	public class UnevenViewCellGallery : ContentPage
	{
		public UnevenViewCellGallery ()
		{
			Title = "UnevenViewCell Gallery - Legacy";

			var map = MapGallery.MakeMap ();
			map.HasScrollEnabled = false;

			Content = new TableView {
				RowHeight = 150,
				HasUnevenRows = true,
				Root = new TableRoot {
					new TableSection ("Testing") {
						new ViewCell {View = map, Height = 250},
						new ViewCell {View = new ProductCellView ("1 day")},
						new ViewCell {View = new ProductCellView ("2 days")},
						new ViewCell {View = new ProductCellView ("3 days")},
						new ViewCell {View = new ProductCellView ("4 days")},
						new ViewCell {View = new ProductCellView ("5 days")}
					}
				}
			};
		}
	}
}