LayoutGroup.GroupBorderStyle Property
Gets or sets the group’s border style. This option is in effect when the LayoutGroup is used to combine layout items, rather than dock items. This is a dependency property.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
GroupBorderStyle | A GroupBorderStyle value that specifies the group’s border style. |
Available values:
Name | Description |
---|---|
NoBorder | A container has no borders. |
Group | A container is displayed with borders and caption. |
GroupBox | A container is displayed with borders and title bar. |
Tabbed | Child items are represented as tabs. |
Remarks
Use the GroupBorderStyle property to specify how the group’s borders are rendered.
The GroupBorderStyle.Group style:
The GroupBorderStyle.GroupBox style:
The GroupBorderStyle.Tabbed style:
Note that the same group border style may be visually rendered differently in different paint themes.
The group’s caption specified by the BaseLayoutItem.Caption property is not displayed if the BaseLayoutItem.ShowCaption option is disabled.
For groups without borders, you can enable larger indents than those of other groups. See LayoutGroup.HasAccent to learn more.
Example
This example shows how to create a LayoutGroup, representing its children as tabs. The tabbed interface for the group is enabled via the GroupBorderStyle property.
The following image shows the result:
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-enable-the-tabbed-ui-for-a-layout-group-e2109.
Imports Microsoft.VisualBasic
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Data
Imports System.Windows.Documents
Imports System.Windows.Input
Imports System.Windows.Media
Imports System.Windows.Media.Imaging
Imports System.Windows.Navigation
Imports System.Windows.Shapes
Namespace Docking_Layout_TabGroups
''' <summary>
''' Interaction logic for MainWindow.xaml
''' </summary>
Partial Public Class MainWindow
Inherits Window
Public Sub New()
InitializeComponent()
End Sub
End Class
End Namespace
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the GroupBorderStyle 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.