public WindowOneViewModel() { People = new AsyncObservableCollection <Person>() { new Person() { Id = 1, Name = "Marcus", City = "New York" }, new Person() { Id = 2, Name = "Ove", City = "Stockholm" }, new Person() { Id = 3, Name = "Jaidi", City = "Bangkok" } }; }
public NewWindowViewModel() { _dayCommand = new RelayCommand(GetDay); People = new AsyncObservableCollection <Person>() { new Person() { Id = 1, Name = "Marcus", City = "New York" }, new Person() { Id = 2, Name = "Ove", City = "Stockholm" }, new Person() { Id = 3, Name = "Jaidi", City = "Bangkok" } }; var assembliesTypeName = Assembly.GetExecutingAssembly().GetTypes().Take(5).Select(t => t.FullName).ToList(); AssemblyTypes = new AsyncObservableCollection <string>(assembliesTypeName); }