The requested page is not available for the requested platform. You are viewing the content for Default platform.

GroupContainer Class

Combines controls into a titled group.

Namespace: DevExpress.UI.Xaml.Layout

Assembly: DevExpress.UI.Xaml.Layout.v19.1.dll

Declaration

[TemplatePart(Name = "PART_Content", Type = typeof(GroupContainerContentPresenter))]
[TemplatePart(Name = "PART_Header", Type = typeof(GroupContainerHeader))]
[StyleTypedProperty(Property = "HeaderStyle", StyleTargetType = typeof(GroupContainerHeader))]
public class GroupContainer :
    HeaderedContentContainer
<TemplatePart(Name:="PART_Content", Type:=GetType(GroupContainerContentPresenter))>
<TemplatePart(Name:="PART_Header", Type:=GetType(GroupContainerHeader))>
<StyleTypedProperty(Property:="HeaderStyle", StyleTargetType:=GetType(GroupContainerHeader))>
Public Class GroupContainer
    Inherits HeaderedContentContainer

Remarks

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
DependencyObject
Windows.UI.Xaml.UIElement
FrameworkElement
Control
Windows.UI.Xaml.Controls.ContentControl
DevExpress.UI.Xaml.Layout.VisualElements.veContentControlBase
DevExpress.UI.Xaml.Layout.VisualElements.veContentControl
See Also