Esempio n. 1
0
        public ImageViewer(IResource resource, S3PEViewModel mainViewModel) : this()
        {
            Resource = resource;

            ImageViewerViewModel viewModel = this.GetDataContext <ImageViewerViewModel>();

            viewModel.ParentViewModel = mainViewModel;
            viewModel.LoadImage(resource.Stream);
        }
Esempio n. 2
0
        public ImageViewer()
        {
            AvaloniaXamlLoader.Load(this);

            DataContext = new ImageViewerViewModel();
        }