Best method for this layout

0
0

I’ve tried a FlexPanel and TableLayoutPanel and not having great success, want to know if there is a proper way for this rather than clamping/editing control locations in a size changed event.

I attached an example of my layout, as the height of the page shrinks, the top of the login box should not go further than the bottom of the “SOME HEADING” label, and same for the footer, it should not go further than the bottom of the login box. I originally did this by manually checking the location in the sizechanged event. Is there a better way?

  • Nicholas
    Use the tablelayoutpanel instead. I would have created three columns and three rows and make the first and last rows fixed in height, and set the middle row to percentage (100). I would then put a panel in the middle row (column 2) and put the email, password and login buttons in it.
  • You must to post comments
0
0

If you want to use the FlexLayoutPanel: Set the LayoutStyle to Vertical. Create a panel as a child of the FlexLayoutPanel for the Email Password and Login fields. For the “Some heading” and the “footer”, create child panels for the FlexLayoutPanel

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.