private void EditPhoto(object sender, RoutedEventArgs e) { var pvWindow = new PhotoViewer { SelectedPhoto = (Photo)PhotosListBox.SelectedItem }; pvWindow.Show(); }
private void EditPhoto(object sender, RoutedEventArgs e) { var pvWindow = new PhotoViewer {SelectedPhoto = (Photo) PhotosListBox.SelectedItem}; pvWindow.Show(); }