wpf"Half the Whitespace" Design principle


When laying out controls, it is easy to hard-code specific values in margins and paddings to make things fit the desired layout. However, by hard-coding these values, maintenance becomes much more expensive. If the layout changes, in what might be considered a trivial way, then a lot of work has to go into correcting these values.

This design principle reduces the cost of maintenance of the layout by thinking about the layout in a different way.