private void InitializeViewModels() { ViewModels = new ObservableCollection<ViewModel>(); var albumsModel = new AlbumsViewModel(); albumsModel.IsSelectionEnabled = false; albumsModel.Initialize(cts.Token); var contactsModel = new ContactsViewModel(); contactsModel.IsSelectionEnabled = true; contactsModel.Initialize(cts.Token); ViewModels.Add(albumsModel); ViewModels.Add(contactsModel); }
private void InitializeViewModels() { ViewModels = new ObservableCollection <ViewModel>(); var albumsModel = new AlbumsViewModel(); albumsModel.IsSelectionEnabled = false; albumsModel.Initialize(cts.Token); var contactsModel = new ContactsViewModel(); contactsModel.IsSelectionEnabled = true; contactsModel.Initialize(cts.Token); ViewModels.Add(albumsModel); ViewModels.Add(contactsModel); }