Search code examples
alignmentmonodevelop

Alignment in MonoDevelop


I switched from using Visual Studio Ultimate 2010 and I am trying to work with MonoDevelop and GTK#. I am trying to use new IDE but it seems much different than Visual Studio. I want to develop fullscreen application that's why I must set Horizontal and Vertical alignment. In Visual Studio I can set the HorizontalAlignment property to Stretch and VerticalAlignment to Top, but MonoDevelop and Gtk# haven't this property. How can I set the same alignment in MonoDevelop?


Solution

  • The GTK+ layout system very different to Winforms - it's based on packing widgets into containers. By default, most widgets expand to take all the space allocated to them by their parent container. For example, if you put a button directly into a window, it will fill the entire window. If you put it into a HBox/VBox, you can use the expand and fill properties to control how the box shares the available space among its child widgets, and how the widgets fill the available space.

    A more exact answer would need some information about the widgets you're actually using.