Skip to main content
A newer version of this page is available. .

How to: Create a ButtonEdit with a Custom Button

The following example shows how to create a ButtonEdit with the Clear button that clears the editor's value.

using System.Windows;

namespace ButtonEdit_Creating {
    public partial class Window1 : Window {
        public Window1() {
            InitializeComponent();
        }
        private void ButtonInfo_Click(object sender, RoutedEventArgs e) {
            buttonEdit.EditValue = string.Empty;
        }
    }
}