public MyPickerView()
        {
            var list = new List <string>();

            list.Add("one");
            list.Add("two");
            list.Add("three");

            picker = new MyPicker
            {
                Title             = "Test Picker",
                HorizontalOptions = LayoutOptions.FillAndExpand,
            };

            foreach (var items in list)
            {
                picker.Items.Add(items);
            }

            Content = new StackLayout
            {
                Children =
                {
                    picker
                }
            };
        }
Exemplo n.º 2
0
		public MyPickerView ()
		{
			var list = new List<string>();
			list.Add("one");
			list.Add("two");
			list.Add("three");

			picker = new MyPicker
			{
				Title = "Test Picker",
				HorizontalOptions = LayoutOptions.FillAndExpand,            
			};

			foreach(var items in list)
			{
				picker.Items.Add(items);
			}

			Content = new StackLayout
			{
				Children = {
					picker
				}
			};
		}