summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2143.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2143.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2143.cs55
1 files changed, 55 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2143.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2143.cs
new file mode 100644
index 00000000..8bad724e
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2143.cs
@@ -0,0 +1,55 @@
+´╗┐using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Xamarin.Forms.CustomAttributes;
+
+namespace Xamarin.Forms.Controls.TestCasesPages
+{
+ [Preserve (AllMembers=true)]
+ [Issue (IssueTracker.Github, 2143, "Picker on windows phone",PlatformAffected.WinPhone)]
+ public class Issue2143 : ContentPage
+ {
+ public Issue2143 ()
+ {
+ var table = GetTableView ();
+ var list = GetListView ();
+ Content = list;
+ }
+
+ static ListView GetListView ()
+ {
+ var listView = new ListView ();
+ listView.ItemTemplate = new DataTemplate (typeof (PickerCell));
+ listView.ItemsSource = new[] { "one", "two", "three" }; ;
+ return listView;
+ }
+
+ static TableView GetTableView ()
+ {
+ var tableSection = new TableSection ("Picker");
+ tableSection.Add (new PickerCell ());
+ var root = new TableRoot ("Root");
+ root.Add (tableSection);
+ var table = new TableView (root);
+ return table;
+ }
+ }
+
+ internal class PickerCell : ViewCell
+ {
+ public PickerCell ()
+ {
+ var picker = new Picker { Title ="Select Level of Activity." };
+ picker.Items.Add ("Sedentary");
+ picker.Items.Add ("Moderate");
+ picker.Items.Add ("Active");
+ picker.Items.Add ("None");
+ picker.SelectedIndex = 0;
+ View = picker;
+ }
+ }
+
+
+}