GroupContainer Class
Combines controls into a titled group.
Namespace: DevExpress.UI.Xaml.Layout
Assembly: DevExpress.UI.Xaml.Layout.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
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
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.
Example
The following code creates a GroupContainer
displaying a Grid with sample controls:
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
veHeaderedContentControl
HeaderedContentContainer
GroupContainer
See Also