I'm used to the GUI frameworks in Java as well as the QT GUI framework, and I'm used to the various layout managers. It doesn't seem that C# has any layout managers built in, or am I missing something?
I just want to point out to any readers of this question that in hind-sight, my question was misplaced. With proper anchoring and docking of child controls, having a need for the layout managers of Java and QT4 is nearly non-existent.
WPF does have layout managers, see:
http://msdn.microsoft.com/en-us/library/ms745058.aspx
If you're coming from a Java background, then the section "Panel Elements and Custom Layout Behaviors" will be of particular interest.
Both WPF and Windows Forms provide layout capabilities (WPF is just much better at it).
You can achieve moderately complex layouts in Windows Forms too by utilizing the Dock and Anchor properties of controls. Personally I learned what can be achieved and how through Petzold's book on WinForms. If you don't have access to that book, read this short article.
chibacity is right, WPF is loaded with layout managers, all of them are very good.
However if you're going down the WinForms route, you're stuck with TableLayoutPanel, FlowLayoutPanel and SplitContainer. As well as the usual manual Panel and GroupBox controls.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With