Style the cards

The developer has defined three card classes:

  • closedCard

  • openCard

  • foundCard

The face down state is the closedCard class, the face up state is the openCard class, and the matched state is the foundCard class.

These classes are informed by the state the cards are in, and these states are triggered by the code. By default, the cards are assigned the closedCard class. However, when the cards are revealed, they are assigned the openCard class. When matching pairs are found, they are assigned the foundCard class.

You can use these classes, along with Blend for Visual Studio 2012 in interactive mode, to style the cards according to the class they are assigned.

For more information from the developer, see Developer notes (HTML).

The next step: Style the closedCard class.