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 } }; }
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 } }; }