Skip to main content

BaseEdit.BorderTemplate Property

Gets or sets a template used to display the editor's border. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

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

#Declaration

[Browsable(false)]
public ControlTemplate BorderTemplate { get; set; }

#Property Value

Type Description
ControlTemplate

A ControlTemplate object representing the template that defines the appearance of the editor's border.

#Remarks

To hide the border, set the BaseEdit.ShowBorder property to false.

To customize the editor's visual representation via templates, use its BaseEdit.DisplayTemplate, BaseEdit.EditTemplate and BaseEdit.EditInplaceTemplate properties.

#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