wpf-devexpress-dot-xpf-dot-editors-dot-settings-dot-buttoneditsettings-7b272d21.md
Gets or sets the data template used to render buttons of the ButtonEdit. This is a dependency property.
Namespace : DevExpress.Xpf.Editors.Settings
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public DataTemplate ButtonTemplate { get; set; }
Public Property ButtonTemplate As DataTemplate
| Type | Description |
|---|---|
| DataTemplate |
A DataTemplate object that is used to render buttons of the ButtonEdit.
|
You can access this nested property as listed below:
| Object Type | Path to ButtonTemplate |
|---|---|
| TokenEditorBehavior |
.NewTokenEditSettings .ButtonTemplate
| | TokenEditorBehavior |
.TokenEditSettings .ButtonTemplate
|
The ButtonTemplate property specifies the data template used to render buttons from the ButtonEditSettings.ButtonsSource collection.
<dxe:ButtonEditSettings.ButtonTemplate>
<DataTemplate>
<ContentControl>
<dxe:ButtonInfo
Command="{Binding Command}"
Content="{Binding Content}"
IsLeft="{Binding IsLeft}" />
</ContentControl>
</DataTemplate>
</dxe:ButtonEditSettings.ButtonTemplate>
If you want to declare several data templates and apply one of them according to your own logic, use the ButtonEditSettings.ButtonTemplateSelector property.
See Also