summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue260.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue260.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue260.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue260.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue260.cs
new file mode 100644
index 00000000..cd53a95d
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue260.cs
@@ -0,0 +1,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;
+ }
+ }
+}