FreeCell done using Expression tools


During one of our past bug-bashes, I worked on the very popular (but simple) FreeCell game. One of the cool things I like about WPF is the ability to keep the business logic separate from the user interface – the biggest benefit is you can pull out Expression, do all the graphics, and then wire-up the code later. Though this example has very little interactivity, it shows how easy it is to achieve this. All the UI was done completely in Expression and all of the code was written in VS (sorry for the poor code quality – I only had a litte over an hour to write it!). Also, you will notice the use of another custom control to layout the various cards in a stack – they (WPF) have made is so very easy to extend the functionality of existing panels/controls. Source can be downloaded from here.


Comments (9)

  1. MisQ says:

    Hi Unni, is it possible to open this freecell under VS.NET 2003? 😉 Im trying to open the project file but something is wrong and error is returned. sorry for my stupid question ;]

  2. I have not tried it, but you can surely open it in VS 2005 and Expression Interactive Designer January CTP.

  3. MisQ says:

    Thanks for quick response, i will try under vs 2005, btw. great blog Unii

  4. To view a sample or tutorial, click on one of thumbnails or links below. Some samples also have supporting…

  5. Tara Calame says:

    I cannot win #1941 on the Windows package.  Any thoughts on how to solve this one.  PS- I don’t write code

  6. FYI says:

    March CTP breaks the example

  7. xujiancai says:

    Good….

  8. To view a sample or tutorial, click on one of thumbnails or links below. Some samples also have supporting