Author: Pete Brown's Blog (POKE 53280,0) for tag ASP.NET | Posted on: 5/14/2010 6:03:15 PM | Views : 848

I was exhausted last night, but couldn't sleep. For some reason, I kept thinking about how many places the 9 cell grid (or scale 9 grid as it is called in some uses) 3x3 grid pops up in our work. In its simplest form, the grid is something like this: With the middle center often being optional. Or, put into C#, perhaps a structure or class that looks like this: public class Grid9<T> { public T TopLeft { get; set; } public T TopCenter { get; set; } public T TopRight { get; set; } public T MiddleLeft { get; set; } public T MiddleCenter { get; set; } public T MiddleRight { get; set; } public T BottomLeft { get; set; } public T BottomCenter { get; set; } public T BottomRight { get; set; } } Where T could be an image or connection point...(read more) ...

Go to the complete details ...