I’d like to start programming in C# (I’ve studied it a little in the past and I know it has many similarities with Java).
But what I LOVE in Java is the ability to lay out components with code. I seriously dislike form designers, and as far as I know, Visual Studio does not give you that condition.
I’d like to know if C# has Layout Managers or something alike, for that would fit a lot better in my likes.
TIA, André
It depends on what user interface technology you use.
Both WPF/Xaml and Windows Forms can be done entirely in code, though it’s a bit trickier with WPF, as it’s really oriented for use with Xaml.
With Windows Forms, the designer actually builds the code required (see form.designer.cs), so you can see exactly what it would take to write this “by hand”.
For WPF, it’s a bit trickier, but still possible. Charles Petzold’s WPF book actually takes this approach, and starts with a code-first approach to building WPF user interfaces, then later shows how to use markup (xaml). That being said, the Xaml approach is far nicer, and more flexible in many ways than doing everything in code.