blob: 1dde58a4b53dfd22262fc3924b17524d2c096fc0 (
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
|
using System;
using System.Linq;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
namespace Xamarin.Forms.Controls
{
[Preserve (AllMembers=true)]
[Issue (IssueTracker.Github, 214, "TextCell DetailColor change not immediate", PlatformAffected.iOS)]
public class Issue214 : ContentPage
{
public Issue214 ()
{
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;
}
}
}
|