maui-linux/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issu.../Issue260.cs

43 строки
904 B
C#
Исходник Обычный вид История

2016-03-22 23:02:25 +03:00
using System;
using System.Linq;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
2016-03-22 23:02:25 +03:00
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;
}
}
}