Пример #1
0
        public UI_PickerViewModel()
        {
            Fruits = (from x in DataService.Fruits
                      select new Fruit {
                Name = x
            }).ToArray();

            SelectedFruit = Fruits.SingleOrDefault(x => x.Name == "Coconut");
        }