PDA

View Full Version : Image Layout in MVC (RAZOR)



syphuonglam
Jun 21, 2017, 2:13 AM
Help Me Please!
25002

fabricio.murta
Jun 21, 2017, 2:46 PM
Hello @syphuonglam! Welcome to Ext.NET forums!

A layout is something you give to containers, not inner components.

That is, you give an outer panel a a layout (VBox, HBox, Fit, Border, etc) to define how the components inside it will be laid out. As of how the panel itself will be placed, it will depend on whatever is surrounding it.

Usually a ViewPort is the main, outer component, of a page (it basically is a container that fits the browser window's width/height).

There may be some situations where an inner container determines how will it be laid out inside its outer. This case is true, for example, when the outer container is in the Border layout, then the inner components can determine their placement "region" with the Region() argument.

Here's an MVC sample using the border layout: Border Layout Regions Toggle (http://mvc4.ext.net/#/Keys_KeyMap/BorderLayout_Regions_Toggle/). More border layout examples would be the WebForms BorderLayout Example (http://examples4.ext.net/#/Layout/BorderLayout/Complex_in_Markup/) and the ones beside it.

I hope this helps! Take a look on the other layout examples on both MVC Examples Explorer (http://mvc4.ext.net/) and WebForms Examples Explorer (http://examples4.ext.net/) for more!

syphuonglam
Jun 22, 2017, 1:35 AM
Thanks @fabricio.murta for the support.