ButtonEditSettings.ButtonTemplate Property
In This Article
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.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
public DataTemplate ButtonTemplate { get; set; }
#Property Value
Type | Description |
---|---|
Data |
A Data |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Button |
---|---|
Token |
|
Token |
|
#Remarks
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