public PhotosStore(IPhotoViewModelFactory photoViewModelFactory) { _photoViewModelFactory = photoViewModelFactory; _photos = new ObservableCollection <PhotoViewModel>(); Photos = new ReadOnlyObservableCollection <PhotoViewModel>(_photos); }
public GalleryPageViewModel(ILogger <GalleryPageViewModel> logger, INavigationService navigationService, IInOutService inOutService, IPhotoViewModelFactory photoViewModelFactory, INotificationService notificationService) { this.logger = logger; this.navigationService = navigationService; this.inOutService = inOutService; this.photoViewModelFactory = photoViewModelFactory; this.notificationService = notificationService; Photos = new ObservableCollection <PhotoViewModel>(); InitializeCommands(); }