blob: cd53a95dfabb71e4b262f444a0dc04a5d2c09bb3 (
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
35
36
37
38
39
40
41
|
using System;
using System.Linq;
using Xamarin.Forms.CustomAttributes;
namespace Xamarin.Forms.Controls
{
[Preserve (AllMembers=true)]
[Issue (IssueTracker.Github, 260, "Layout issue for TableView", PlatformAffected.WinPhone)]
public class Issue260 : ContentPage
{
// Issue: #229
// ToolbarItems broken on Android
// Doesn't seem to working on All Platforms
public Issue260 ()
{
var items = Enumerable.Range (0, 50).Select (i => new TextCell {
Text = i.ToString (),
Detail = i.ToString ()
}).ToList ();
var tableSection = new TableSection("First Section");
foreach (TextCell cell in items) {
tableSection.Add (cell);
}
var tableRoot = new TableRoot () {
tableSection
};
var tableLayout = new TableView {
Root = tableRoot
};
tableLayout.Intent = TableIntent.Data;
Content = tableLayout;
}
}
}
|