protected override void OnCurrentComicSnapshotChanged(ComicSnapshotInfo <WithImageStorableComicSourceInfo <Bitmap, Bitmap> > info) { if (info is WithImageComicSnapshotInfo <Bitmap, Bitmap> sn) { var vm = new DesktopComicViewModel(info.Snapshot, sn.LogoImage); var navSer = AppEngine.GetRequiredService <MainNavigationService>(); var c = navSer.Navigate <ComicView>(); c.DataContext = vm; } }
protected override void OnCurrentComicSnapshotChanged(ComicSnapshotInfo <WithImageStorableComicSourceInfo <ImageBox, ImageBox> > info) { if (info is WithImageComicSnapshotInfo <ImageBox, ImageBox> sn) { var navSer = AppEngine.GetRequiredService <UnoNavigationService>(); navSer.Navigate(typeof(ComicView), sn); //var vm = new UnoComicViewModel(info.Snapshot, sn.LogoImage.Image); //navSer.Navigate(new ComicView { DataContext = vm }); } }