Back to Devexpress

LayoutGroup.GroupBoxDisplayMode Property

wpf-devexpress-dot-xpf-dot-layoutcontrol-dot-layoutgroup-b9ef3b77.md

latest4.5 KB
Original Source

LayoutGroup.GroupBoxDisplayMode Property

Gets or sets the display mode of the current LayoutGroup header when this group is displayed as a group box. This is a dependency property.

Namespace : DevExpress.Xpf.LayoutControl

Assembly : DevExpress.Xpf.LayoutControl.v25.2.dll

NuGet Package : DevExpress.Wpf.LayoutControl

Declaration

csharp
public GroupBoxDisplayMode GroupBoxDisplayMode { get; set; }
vb
Public Property GroupBoxDisplayMode As GroupBoxDisplayMode

Property Value

TypeDescription
GroupBoxDisplayMode

A GroupBoxDisplayMode enumerator value that specifies the display mode of the current LayoutGroup header.

|

Available values:

NameDescription
Default

Equal to the GroupBoxDisplayMode.Normal value.

| | Normal |

Container headers should be painted by default.

| | Light |

Container headers should be painted more lightly.

|

Remarks

There are two display modes for the LayoutGroup header, when this group’s LayoutGroup.View property is set to LayoutGroupView.GroupBox.

The GroupBoxDisplayMode.Default value corresponds to the GroupBoxDisplayMode.Normal display mode.

Also, you can specify how the header is rendered by providing a template. To provide a template, use the LayoutGroup.HeaderTemplate property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GroupBoxDisplayMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-data-grid-create-filter-ui/CS/WpfApplication27/MainWindow.xaml#L58

xml
</dxg:GridControl>
<dxlc:DataLayoutControl x:Name="myDataLayoutControl" CurrentItem="{Binding Path=FilteringViewModel, ElementName=filteringBehavior}" GroupBoxDisplayMode="Light" ItemSpace="10" AutoGenerateItems="False" AllowBringChildIntoView="False">
    <Button Width="150" Height="30" Content="Reset all filters" Command="{Binding FilteringViewModel.City.ResetAllCommand, ElementName=filteringBehavior}" />

wpf-data-grid-extend-crud-operations/CS/DetailCollectionEditing/UserDetailView.xaml#L19

xml
<dxlc:DataLayoutItem Binding="{Binding Item.LastName}"/>
<dxlc:LayoutGroup Header="Issues" GroupBoxDisplayMode="Light" View="GroupBox" Orientation="Vertical">
    <dxb:ToolBarControl>

See Also

LayoutGroup Class

LayoutGroup Members

DevExpress.Xpf.LayoutControl Namespace