Пример #1
0
 public BackgroundImageViewModel(VideoViewerViewModel source)
     : base(source.InfoView.Source.BackgroundImageAsCoverParent())
 {
     this.videoViewer = source;
     this.AutoGenerateCoverProvider = new BackgroundAutoGenerateCoverProvider(source);
     this.IsDelayLoad = true;
 }
        internal static VideoViewerPage BuildPage(VideoInfoViewModel info)
        {
            var vm = new VideoViewerViewModel(info);

            var page = new VideoViewerPage()
            {
                ViewModel = vm,
                DataContext = vm
            };

            Engines.ForEach(z => AppendToContextMenu(page.SeriesContextMenu, z));
            return page;
        }
Пример #3
0
 public BackgroundAutoGenerateCoverProvider(VideoViewerViewModel source)
 {
     this.source = source;
 }
Пример #4
0
 public BackgroundImageViewModel(VideoViewerViewModel source)
     : base(source.InfoView.Source.BackgroundImageAsCoverParent())
 {
     this.videoViewer = source;
     this.AutoGenerateCoverProvider = new BackgroundAutoGenerateCoverProvider(source);
     this.IsDelayLoad = true;
 }
Пример #5
0
 public BackgroundAutoGenerateCoverProvider(VideoViewerViewModel source)
 {
     this.source = source;
 }