WPF/e Slider Puzzle

Feb 20, 04:05 am
tags: ,

Chad Campbell has posted an amazing example of using WPF/e to create a slider puzzle with live video running in each of the squares. You complete the puzzle and the video image is complete.

It’s not absolutely seamless, but I still think it’s great. He briefly explains how it works (loading the video nine times – one for each square – and defining each as a seperate Canvas then using the Clip property in conjunction with a mathemtatical offset (Canvas.Top and Canvas.Left) to determine what part of the video is visible to the user playing the game.

Source code is available, too, so if you’ve got the WPF/e SDK installed you can step through it for yourself.

Founders at Work



Add your comments

Please keep your comments relevant to this blog entry: inappropriate or purely promotional comments may be removed. To add hyperlink, please follow this example: "your link text":http://your.link.url