private void ImageAccess(object obj) { byte[][] currentObservationImages = obj as byte[][]; View.PatientPictureView window = new View.PatientPictureView(); ViewModel.PatientPictureViewModel vm = new PatientPictureViewModel(window, currentObservationImages); window.DataContext = vm; _ns = NavigationService.GetNavigationService(_linkedView); _ns.Navigate(window); }