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
Post a Comment