Back to Devexpress

DataLayoutControl.GroupPathSeparator Property

wpf-devexpress-dot-xpf-dot-layoutcontrol-dot-datalayoutcontrol-9fbf45f1.md

latest2.6 KB
Original Source

DataLayoutControl.GroupPathSeparator Property

Specifies the symbol that separates individual group descriptions.

Namespace : DevExpress.Xpf.LayoutControl

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

NuGet Package : DevExpress.Wpf.LayoutControl

Declaration

csharp
public static char GroupPathSeparator { get; set; }
vb
Public Shared Property GroupPathSeparator As Char

Property Value

TypeDescription
Char

A Char value that separates individual group descriptions.

|

Remarks

By default, you have to separate individual groups with the ‘/‘ character. For instance, in the Data Layout Control topic example, the following code adds the AddressLine1 editor to the Address group within the Contact tab, placed within the Tabs group.

csharp
[Display(GroupName = "{Tabs}/Contact/Address", ShortName = "")]
public string AddressLine1 { get; set; }
vb
<Display(GroupName := "{Tabs}/Contact/Address", _
        ShortName="" := "")> _
Public Property AddressLine1() As String 
'... 
End Property

To implement your own custom syntax and replace the default ‘/‘ symbol with a desired custom symbol, use the static GroupPathSeparator property. For example, if the GroupPathSeparator property equals ‘*’, the code above should be modified as follows.

csharp
[Display(GroupName = "{Tabs}*Contact*Address", ShortName = "")]
public string AddressLine1 { get; set; }
vb
<Display(GroupName := "{Tabs}*Contact*Address", _
        ShortName="" := "")> _
Public Property AddressLine1() As String 
'... 
End Property

See Also

Data Layout Control

DataLayoutControl Class

DataLayoutControl Members

DevExpress.Xpf.LayoutControl Namespace