Skip to main content

BaseEdit.ShowBorder Property

Gets or sets whether the editor's border is displayed. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v14.2.dll

#Declaration

public bool ShowBorder { get; set; }

#Property Value

Type Description
Boolean

true to display the border; otherwise, false.

#Remarks

To provide a custom border, use the BaseEdit.BorderTemplate property.

#Examples

The following example demonstrates how to specify the editor's border template.

<dxe:TextEdit ShowBorder="True">
    <dxe:TextEdit.BorderTemplate>
        <ControlTemplate>
            <Border BorderThickness="1" BorderBrush="Red">
                <ContentPresenter/>
            </Border>
        </ControlTemplate>
    </dxe:TextEdit.BorderTemplate>
</dxe:TextEdit>
See Also