Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Collapse]Data Editors
    Included Components
   [Expand]Implementation Details
   [Expand]Getting Started
   [Collapse]Editor Types
     BarCodeEdit
     BrushEdit
     ButtonEdit
     Calculator
     CheckEdit
     ColorEdit
     ComboBoxEdit
     DateNavigator
     DateEdit
     DropDownButton
     FlyoutControl
     FontEdit
     HyperlinkEdit
     ImageEdit
     ListBoxEdit
     LookUpEdit
     MemoEdit
     PasswordBoxEdit
     PopupBrushEdit
     PopupCalcEdit
     PopupColorEdit
     PopupImageEdit
     ProgressBarEdit
     RangeControl
     RatingEdit
     SparklineEdit
     SpinEdit
     SimpleButton
     SplitButton
     TextEdit
     ToggleSwitchEdit
     Token Editors
     TrackBarEdit
   [Expand]Common Features
   [Expand]Range Control
   [Expand]Visual Elements
   [Expand]End-User Capabilities
   [Expand]Examples
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

ButtonEdit

Expanded Overview

The ButtonEdit control is an advanced text box editor that allows nesting buttons inside of it.

The ButtonEdit control offers the following features.

  • Unlimited number of nested buttons

    ButtonEdit can display any number of nested buttons that are stored in the ButtonEdit.Buttons collection. Individual nested buttons are represented by the ButtonInfo objects.
  • Customizable button appearance and alignment

    Each button can be individually customized. To specify the desired button glyph, use the ButtonInfo.GlyphKind property. To left-align a nested button, set the ButtonInfoBase.IsLeft property to true.
  • Optional default button

    By default, ButtonEdit displays a single button. To control its availability, use the ButtonEdit.AllowDefaultButton property. Clicking the default button raises the ButtonEdit.DefaultButtonClick event.
  • Common editor features

    Like other DevExpress WPF data editors, ButtonEdit supports masked user input and the data validation mechanism.
  • Optimized for in-place editing

    ButtonEdit can be used standalone or as an in-place editor nested in a container control. The ButtonEditSettings class implements the in-place editing functionality. See Inplace Editors to learn more.

Expanded Standalone ButtonEdit

To add a standalone ButtonEdit to a Window, drag it from the Toolbox and populate its ButtonEdit.Buttons collection with the ButtonInfo objects.

The following sample demonstrates how to create a ButtonEdit using XAML markup.

Expanded In-place ButtonEdit

To embed a ButtonEdit into a container control, use the ButtonEditSettings class.

The following sample demonstrates how to embed a ButtonEdit into a GridControl column.

Expanded See Also

Is this topic helpful?​​​​​​​