GroupContainer Class

Combines controls into a titled group.

Namespace: DevExpress.UI.Xaml.Layout

Assembly: DevExpress.UI.Xaml.Layout.v18.2.dll

Declaration

public class GroupContainer :
    HeaderedContentContainer,
    IDisposable,
    IItemContainer
Public Class GroupContainer
    Inherits HeaderedContentContainer
    Implements IDisposable,
               IItemContainer

The GroupContainer supports a single child. You can place any control inside the container. This can be a StackPanel, Grid, etc.

Use the veHeaderedContentControl.Header inherited property to provide a title for the container.

GroupContainer

Examples

The following code creates a GroupContainer displaying a Grid with sample controls:

GroupContainer_ex

xmlns:Layout="using:DevExpress.UI.Xaml.Layout" 

<Layout:GroupContainer  Header="Search Flights" >
    <Grid x:Name="LayoutRoot" Height="135">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150" />
            <ColumnDefinition Width="50" />
            <ColumnDefinition Width="150" />
            <ColumnDefinition Width="150" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="32"/>
            <RowDefinition Height="32" />
            <RowDefinition Height="52"/>
        </Grid.RowDefinitions>
        <Image Grid.Column="0" Grid.Row="0" Grid.RowSpan="3" Source="Images/Airplane.png" />
        <TextBlock Text="From:" Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" FontWeight="Bold"/>
        <TextBlock Text="To:" Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" FontWeight="Bold"/>
        <ComboBox Grid.Column="2" Grid.Row="0" />
        <ComboBox Grid.Column="2" Grid.Row="1"/>
        <StackPanel Grid.Column="3" Grid.Row="0" Grid.RowSpan="3" Margin="10,2">
            <RadioButton Content="Round trip" GroupName="FlightDirection" IsChecked="True"/>
            <RadioButton Content="One way" GroupName="FlightDirection"/>
        </StackPanel>
    </Grid>
</Layout:GroupContainer>

Inheritance

Object
DevExpress.UI.Xaml.Layout.VisualElements.veContentControlBase
DevExpress.UI.Xaml.Layout.VisualElements.veContentControl

Implements

See Also