Vote count:
0
Warning, a noob here!
I'am coding a Windows8 Metro app in which use some sort of quiz. I even don't know where to start because this is what bothers me. I have 3 sets of 10 images. I want that every time, when that page with quiz run, that program pick a picture randomly, and when a user ticks the answer, on the next page appears image #2 that is also picked randomly and so on, and so on. I'didnt write any code here, because I don't have it since i don't know where to start.
In my own head with some logic it should go something like this:
in .cs there should be a method that picks some random number between 1 and 3 (i know how to do that, that is not the problem)
that number represents a set of images
here comes the problem, i should somehow connect that number with an image saved in my folder inside the project and bind it to XAML
Every image can be selected only once in that run, so that every time i run that page i have random appearance of those images.
I hope I was not too confusing, and excuse me for my terrible english.
Best regards!
Aucun commentaire:
Enregistrer un commentaire