Posts Tagged ‘Solitaire’
Art of Solitaire – Silverlight 2 Card Game
This a Hi-Lo Solitaire game I wrote way back in Silverlight 1.1 Alpha and that I recently updated to Silverlight 2. At the time of writing, Silvelright 1.1 Alpha didn’t have a way of updating the screen programmatically, and the only way to do it, was by defining an event handler of a StoryBoard.Completed event. I recall there was also an HtmlTimer but it just wasn’t fast enough. Of course, having concurrent animations all over the place starting at different intervals with only one StoryBoard was challenging enough, and I didn’t want a StoryBoard for every single object on the screen that would probably kill performance too. So, I distributed all the animations between four StoryBoards.
Now there’s Timers, Threads and CompositionTarget event rendering along with StoryBoard so you can take your pick on what method to use which I find quite nice. Click the image bellow to play!
Thank you,
–Bill Sithiro
