windows phone 7 - WP7/Expression Blend: Load different image -


i trying make simple card game. have loaded 10 cards in project , want is, if click button, want 'display' specific card. how do programming practice.

what can is, make 10 storyboard , load ones whenever click button. not practice. want method call or something, in call image file id or 'filename'.

please help. thankyou

you can create 1 storyboard , change target of storyboard every time click on specific button. example, let's have cards: 2, 3, 4, 5 , 6.

if click on button says: "2" (the 2 card) following code make storyboard target specific control:

storyboard.settargetname(animation, 2card); 

where animation timeline object , 2card name of control want animate.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -