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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Xamarin.Forms.Controls
{
public class MinimumSizeGallery : ContentPage
{
public MinimumSizeGallery ()
{
Content = new StackLayout {
Children = {
new Button { Text = "Big Button", HeightRequest = 300 },
new TableView {
Intent = TableIntent.Settings,
Root = new TableRoot {
new TableSection ("SECTION 1") {
new TextCell { Text = "Cell 1", Detail = "Red Text", TextColor = Color.Red },
new TextCell { Text = "Detail Red", Detail = "Detail", DetailColor = Color.Red },
new TextCell { Text = "Cell 3" },
new TextCell { Text = "Cell 4" }
},
new TableSection ("Section 2") {
new TextCell { Text = "Cell 1" },
new TextCell { Text = "Cell 2" },
new TextCell { Text = "Cell 3" },
new TextCell { Text = "Cell 4" }
},
new TableSection ("Section 3") {
new TextCell { Text = "Cell 1" },
new TextCell { Text = "Cell 2" },
new TextCell { Text = "Cell 3" },
new TextCell { Text = "Cell 4" }
},
new TableSection ("Section 4") {
new TextCell { Text = "Cell 1" },
new TextCell { Text = "Cell 2" },
new TextCell { Text = "Cell 3" },
new TextCell { Text = "Cell 4 Last" }
}
}
}
}
};
}
}
}
|