Back to Devexpress

DataLayoutControl.GroupBoxMarkStart Property

wpf-devexpress-dot-xpf-dot-layoutcontrol-dot-datalayoutcontrol-4e9797a7.md

latest2.7 KB
Original Source

DataLayoutControl.GroupBoxMarkStart Property

Specifies the symbol that labels the beginning of a DataLayoutControl group with borders and a caption.

Namespace : DevExpress.Xpf.LayoutControl

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

NuGet Package : DevExpress.Wpf.LayoutControl

Declaration

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

Property Value

TypeDescription
Char

A Char value that labels the beginning of a DataLayoutControl group with borders and a caption.

|

Remarks

By default, to create a group with borders and a caption, you have to wrap this group’s name with ‘[‘ and ‘]’ characters when using the DisplayAttribute.GroupName attribute on a bound property. The code below illustrates the example.

csharp
[Display(GroupName = "[Group Caption]", Name = "First name", Order = 0)]
public string FirstName { get; set; }
[Display(GroupName = "[Group Caption]", Name = "Last name")]
public string LastName { get; set; }
vb
<Display(GroupName := "[Group Caption]", Name="" := "Last name")> _
Public Property LastName() As String 
    '... 
End Property 
<Display(GroupName := "[Group Caption]", Name="" := "First name", _
        Order="" := "0")> _
Public Property FirstName() As String 
'... 
End Property

If you want to implement your own custom syntax and define custom characters to label a group’s beginning and/or end, use the static GroupBoxMarkStart and DataLayoutControl.GroupBoxMarkEnd properties.

See Also

GroupBoxMarkEnd

Data Layout Control

DataLayoutControl Class

DataLayoutControl Members

DevExpress.Xpf.LayoutControl Namespace