Edit this page

Items

This article explains how the different types of items supported in RadLayoutControl can be used. The items types are shown in Figure1.

Figure 1: Item Types

layoutcontrol-items 001

  1. LayoutControlItem: This item holds the controls added to a RadLayoutControl. Each control is added to an item and then the item is added to the layout control. This grants you control over the control sizing and position. The most important properties are:
    • MinSize: Gets or sets the item’s minimum size.
    • MaxSize: Gets or sets the item’s maximum size.
    • DrawText: specifies if the item's text should be drawn.
    • TextPosition: Gets or set the text position according to the hosted control.
    • TextSizeMode: Controls the size mode of the item's text part. The possible values are ProportionalSize (the text is resized proportionally) and FixedSize (the text size is fixed). Depending on this value the corresponding size property is used.
    • TextProportionalSize: Gets or sets the proportional text size when the proportional size mode is used.
    • TextFixedSize: Gets or sets the text size when the fixed size mode is used.
  2. LayoutControlLabelItem: Basic item that allows displaying text and/or image.
  3. LayoutControlSeparatorItem: Stands as a separator, its orientation is determined by the position it is placed in. You can use the Thickness property to set the item width.
  4. LayoutControlGroupItem: A group with a header and another layout container inside of it, can be collapsed, has its own Items collection. Its most important properties are:
    • HeaderElement: Gives access to the underlying CollapsiblePanelHeaderElement.
    • HeaderHeight: Gets or set the header height.
    • IsExpanded: Indicates if the group is expanded.
    • TextAlignment: Gets or set the header text alignment.
    • ShowHeaderLine: With this property you can hide the horizontal line in the group header.
  5. LayoutControlSplitterItem: This item allows the resizing of the containers on its both ends. You can set its width with the Thickness property.
  6. LayoutControlTabbedGroup: Holds LayoutControlGroupItems and allows switching between them in a tabbed interface. Its most important properties are:
    • TabStrip: Gives access to the tabs. This way you can change their properties.
    • ItemGroups: This is the collection which holds the underlying groups.
    • SelectedGroup: Gets or sets the selected group.

See Also

Was this article helpful? Yes No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy