You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm starting to test Eto.Forms and I didn't found any documentation about it, is there any type of mechanism to auto adapt layouts to window size? something like Anchor and Dock on WinForms, or any way to specify sizes in percentages?
Cheers.
The text was updated successfully, but these errors were encountered:
Hey late to the party but I thought this would be useful to others that stumbled into this thread,
An effect similar to WinForms Anchor could be done via the use of TableLayout and the ScaleHeight / ScaleWidth properties.
This code sample over here are two forms demonstrating how to create effects that are similar to the Dock Filled option and Dock Left option in WinForms.
I was also struggling to understand TableLayouts when I first made contact with it (from Qt), I think Curtis did a really great job explaining TableLayouts (or at least Eto's implementation of the TableLayout which is basically ported from Gtk) from this Eto wiki page.
Hopefully that has answered the questions, @gusmanb. There is no anchor, but dock is pretty much default for all containers.
To 'anchor', you place the control(s) in the appropriate cells in a TableLayout, so they can be either to the left or right with ScaleWidth as false. Note that you must have at least one cell with ScaleWidth = true, so you'd have to add a cell between the left and right in order for empty space to appear between them.
Hi.
I'm starting to test Eto.Forms and I didn't found any documentation about it, is there any type of mechanism to auto adapt layouts to window size? something like Anchor and Dock on WinForms, or any way to specify sizes in percentages?
Cheers.
The text was updated successfully, but these errors were encountered: