ButtonInfo.TemplateToggle Property

Gets or sets a template used to display a button which ButtonInfo.ButtonKind property is set to ButtonKind.Toggle. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Editors

Assembly: DevExpress.UI.Xaml.Editors.v19.2.dll


public DataTemplate TemplateToggle { get; set; }
Public Property TemplateToggle As DataTemplate

Property Value

Type Description

A DataTemplate object used to display a toggle button.


If the TemplateToggle is not specified or the ButtonInfo.ButtonKind is not set to ButtonKind.Toggle, the button is displayed via the editor's TextEdit.ButtonsTemplate template. The ButtonInfo.ActualTemplate property allows you to obtain which template is currently used.

See Also