Back to Devexpress

BaseEdit.DisplayTemplate Property

wpf-devexpress-dot-xpf-dot-editors-dot-baseedit-3a99b1f5.md

latest2.4 KB
Original Source

BaseEdit.DisplayTemplate Property

Gets or sets a template that defines the editor’s presentation when its value is not edited (display mode). This is a dependency property.

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
[Browsable(false)]
public ControlTemplate DisplayTemplate { get; set; }
vb
<Browsable(False)>
Public Property DisplayTemplate As ControlTemplate

Property Value

TypeDescription
ControlTemplate

A ControlTemplate object representing the editor’s template.

|

Remarks

Standalone Editor

A standalone editor is always in edit mode. Setting the DisplayTemplate property has no effect. To customize the editor’s presentation, use the BaseEdit.EditTemplate property.

In-Place Editor

If the editor is used inplace within a container control (e.g. the grid), its mode depends on whether its owning cell is edited. If a cell is edited, its editor is in edit inplace mode. Otherwise, it is in display mode.

To customize the editor’s appearance, create templates (display and/or edit template) and assign them to the DisplayTemplate and BaseEdit.EditTemplate properties.

Refer to the Assign Editors to Cells topic for more information.

Use the BaseEdit.BorderTemplate property to specify the template that defines the editor’s border.

See Also

BorderTemplate

EditTemplate

BaseEdit Class

BaseEdit Members

DevExpress.Xpf.Editors Namespace