![layout control devexpress layout control devexpress](https://docs.devexpress.com/WindowsForms/images/fixeditemsincustomizationform18629.png)
LayoutControlItem liBtnCancel = lgButtons. LayoutControlItem liBtnOK = lgButtons.AddItem("btnOK", btnOK) Table layout mode is also enabled for the “Phones” and “Buttons” child groups, which arrange their items independently of the Root group.īuttonEdit editorPhone1 = new ButtonEdit() )
![layout control devexpress layout control devexpress](https://community.devexpress.com/blogs/thinking/WinForms/Form-Layout/WinForms-Data-Layout-Standard-Mode.png)
The group divides its space into 2 columns and 4 rows. Table layout mode is enabled for the Root group using its LayoutGroup.LayoutMode property.
#Layout control devexpress how to
The following example shows how to create the following arrangement of controls in Table Layout mode. Use the XtraForm.EnableAcrylicAccent property to activate this rendering mode. The Layout Control supports the Acrylic accent (a semi-transparent background) when it is placed within an XtraForm or its descendant. To move an existing item, group and tabbed group to a new position, use its BaseLayoutItem.Move method. To add a new item, group or tabbed group to another group via code, use the LayoutControlGroup.AddItem, LayoutControlGroup.AddGroup and LayoutControlGroup.AddTabbedGroup methods respectively. To access the Layout Control’s items in code, use the LayoutControl.Items collection. The latter has two tabs containing two groups - Photo and Notes, respectively. The Employee root group displays two regular layout items (Job Title and Contact Name), regular group (Personal Info) and a tabbed group. Right-click a layout group and select the Convert To -> Flow Layout action. At design time, you can enable flow layout mode from the Customization Menu. This mode cannot be enabled for the root group itself. The following image shows a form with a Layout Control. Flow layout mode can be enabled for groups nested within the root group ( LayoutControl.Root) using the LayoutGroup.LayoutMode property. TabbedControlGroup - a tabbed group whose elements (regular groups) are rendered as tabs.LayoutControlGroup - a regular container that can display other items, regular and tabbed groups.LayoutControlItem - a regular layout item that can display an external control.The following items are basic elements for building a layout of controls. Ī LayoutControl object is visually presented by a root group ( LayoutControl.Root) which is a container whose only purpose is to display other items, groups and tabbed groups. To learn how to create and customize a layout of controls at design time, refer to Design-Time Customization. See the Layout Control topic to learn the advantages of using the Layout Control. Layout Control allows you to arrange any controls within a form without overlapping and misaligning them. The following members accept/return LayoutControl objects: Library