I am new to .NET UI stuff and I came from a background with tk UI programming so I am trying to find corresponding ways of doing things. Maybe .NET has a way of achieving the same result that I don’t know of.
So what I am trying to do is roughly illustrated in image 1.
We have a header section, a body section and a footer section. They each have a number of controls in them. What I am trying to find is a way for me to let header section and footer section each take a certain height and stretch horizontally; let body section stretch to fill the rest. Is there a way to do this without needing to calculate the point position and just say “pack header towards the top, pack footer towards the bottom and put body in between”
Top Control – Anchor: Left, Right, Top.
MiddleControl – Anchor: Left, Right, Top, Bottom.
Bottom Control – Anchor: Left, Right, Bottom.