I want that when I double click on a row in Listview, it should display the image corresponding to that row. This row also contains the path of the image.
I tried the following but it displays the same image for all rows because I have given the path for a specific image:
private void ListViewEmployeeDetails_MouseDoubleClick(object sender, MouseButtonEventArgs e) { ImageSource imageSource = new BitmapImage(new Uri(@"C:\northwindimages\king.bmp")); image1.Source = imageSource; }
Please suggest