ButtonEdit Class
Represents a text editor with embedded buttons.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v14.2.dll
#Declaration
#Remarks
ButtonEdit editors are text editors which allow you to display an unlimited number of buttons within the edit box.
By default, the editor displays one button (the default button) whose visibility is specified by the ButtonEdit.AllowDefaultButton property. To display more buttons, create ButtonInfo objects, and add them to the ButtonEdit.Buttons collection.
When an end-user clicks the default button, the editor fires the ButtonEdit.DefaultButtonClick event. To respond to clicking a custom button, handle its ButtonInfo.Click event.
#Examples
This example shows how to create a ButtonEdit with the Clear button that clears the editor's value.
private void ButtonInfo_Click(object sender, RoutedEventArgs e) {
buttonEdit.EditValue = string.Empty;
}