Back to Devexpress

ButtonEditPropertiesBase.ButtonTemplate Property

aspnet-devexpress-dot-web-dot-buttoneditpropertiesbase-5109b27a.md

latest2.4 KB
Original Source

ButtonEditPropertiesBase.ButtonTemplate Property

Gets or sets a common template used for rendering the editor’s buttons.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(null)]
public virtual ITemplate ButtonTemplate { get; set; }
vb
<DefaultValue(Nothing)>
Public Overridable Property ButtonTemplate As ITemplate

Property Value

TypeDefaultDescription
ITemplatenull

An object supporting the ITemplate interface that contains the template used for rendering all buttons within the editor.

|

Remarks

Use the ButtonTemplate property to create a template that defines the common manner in which all the editor’s buttons are rendered.

Note that any style settings defined for the buttons via the editor’s specific property (see ButtonEditPropertiesBase.ButtonStyle or ASPxButtonEditBase.ButtonStyle) are still in effect for the buttons when their contents are specified using the ButtonTemplate property.

Note

The ButtonTemplate property synchronizes its value with the editor’s ASPxButtonEditBase.ButtonTemplate property.

Note

Once a template defined by this property is created, it is instantiated within a container represented by the TemplateContainerBase class. This class implements a set of properties which can be useful when designing a template and binding controls composing this template to data.

See Also

ButtonEdit

ButtonEditPropertiesBase Class

ButtonEditPropertiesBase Members

DevExpress.Web Namespace