Wednesday, February 15, 2006

Skin me. Skin me, my friend.

Skin me again!

Okay, today I'm going to give you a little example of skinning. This is a super-simple case. Here, we have a controller class called "SquareIt." SquareIt lives in an assembly named "SkinExample.UI" and inherits from System.Web.UI.Control. There is also an interface ("ISquareItSkin") that serves as the contract between the SquareIt class and its skins.

For simplicity's sake we are just dealing with skinning. We are not separating any business logic into separate classes.

Let the code speak for itself.