Udostępnij za pośrednictwem


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

  • Anonymous
    February 05, 2006
    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 ;]

  • Anonymous
    February 05, 2006
    I have not tried it, but you can surely open it in VS 2005 and Expression Interactive Designer January CTP.

  • Anonymous
    February 06, 2006
    Thanks for quick response, i will try under vs 2005, btw. great blog Unii

  • Anonymous
    February 10, 2006
    To view a sample or tutorial, click on one of thumbnails or links below. Some samples also have supporting...

  • Anonymous
    February 16, 2006
    I cannot win #1941 on the Windows package.  Any thoughts on how to solve this one.  PS- I don't write code

  • Anonymous
    March 25, 2006
    March CTP breaks the example

  • Anonymous
    June 25, 2006
    Good....

  • Anonymous
    June 19, 2007
    To view a sample or tutorial, click on one of thumbnails or links below. Some samples also have supporting

  • Anonymous
    January 21, 2009
    PingBack from http://www.keyongtech.com/1062289-timer-control