public VideoCollectionViewModel(IVideoItemsProvider provider, INavigationService navigationService)
        {
            _navigationService = navigationService;

            provider.GetVideoItems()
            .ObserveOn(CoreDispatcherScheduler.Current)
            .Subscribe(x => Videos = new ObservableCollection <VideoItem>(x));
        }
示例#2
0
 public VideoDetailsViewModel(IVideoItemsProvider videoItemsProvider)
 {
     _videoItemsProvider = videoItemsProvider;
 }