BaseEdit.BorderTemplate Property
In This Article
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
#Property Value
Type | Description |
---|---|
Control |
A Control |
#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
DevExpress.Xpf.Editors.BaseEdit.EditInplaceTemplate