-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Issue260.cs
43 lines (37 loc) · 943 Bytes
/
Issue260.cs
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
using System;
using System.Linq;
using Microsoft.Maui.Controls.CustomAttributes;
using Microsoft.Maui.Controls.Internals;
namespace Microsoft.Maui.Controls.ControlGallery.Issues
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Github, 260, "Layout issue for TableView", PlatformAffected.WinPhone)]
#if UITEST
[NUnit.Framework.Category(Compatibility.UITests.UITestCategories.TableView)]
#endif
public class Issue260 : ContentPage
{
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;
}
}
}