Hi there, trying to do something I thought was pretty basic, but can't get around this error.
I have a ListBox, List (AllImages) full of image paths, and two image elements.
Image 1 displays the selected item, Image 2 displays selected item + 1
I have:int inx = Convert.ToString(ImageList.SelectedIndex);
to get the current index selection, and then I'm passing that into the List (since the indexes will be the same) with:
Background.Source = new BitmapImage(new Uri((AllImages[inx])));
The erorr I get is: Argument 1: cannot convert from 'method group' to 'int' Image Viewer
Is someone able to help me? When I use numbers 0-9 instead of passing a variable, the output is the full file name of the image, so I can't understand why it won't work with an int variable.