summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla27085.cs
blob: f4dcfe835cc82356a930f9c4a4491225174acc2b (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
using System;

using Xamarin.Forms.CustomAttributes;

#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
#endif

namespace Xamarin.Forms.Controls
{
	[Issue (IssueTracker.Bugzilla, 27085, "EntryCell has no possibility to hide keyboard on iOS")]
	public class Bugzilla27085 : TestContentPage // or TestMasterDetailPage, etc ...
	{
		protected override void Init ()
		{
			var tableview = new TableView ();
			
			var section = new TableSection ("Settings");
			section.Add (new TextCell { Text = "TextCell" });
			section.Add (new TextCell { Text = "TextCell" });
			section.Add (new EntryCell { Text = "EntryCell", Keyboard = Keyboard.Numeric });
			section.Add (new EntryCell { Text = "EntryCell", Keyboard = Keyboard.Numeric });
			var root = new TableRoot ("Main");
			root.Add (section);
			
			tableview.Root = root;
				
			Content = tableview;
		}
	}
}