ButtonEditSettings Class

Contains settings specific to the ButtonEdit editor.

Namespace: DevExpress.Xpf.Editors.Settings

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public class ButtonEditSettings :
    TextEditSettings
Public Class ButtonEditSettings
    Inherits TextEditSettings

Related API Members

The following members accept/return ButtonEditSettings objects:

Remarks

DevExpress container controls (e.g. GridControl, TreeListControl, etc.) use DevExpress WPF Editors to edit data they display. Each editor has the helper class (the BaseEditSettings descendant), responsible for the editor's functionality. When the same editor is used in multiple locations, a container control uses this helper class to paint its cells. The actual editors are only created when end-users start to edit, and are automatically destroyed when editing is completed. To learn more about in-place editing, see Inplace Editors.

For detailed information on button editors, see ButtonEdit.

Examples

This example shows how to open a dialog window by clicking the default button of ButtonEdit, embedded in the WPF DXGrid control.

Imports Microsoft.VisualBasic
Imports System.Collections.Generic
Imports System.Windows
Imports System.Windows.Documents

Namespace DXGrid_DialogWindow
    ''' <summary>
    ''' Interaction logic for Window1.xaml
    ''' </summary>
    Partial Public Class Window1
        Inherits Window
        Public Sub New()
            InitializeComponent()
            gridControl1.DataSource = GetData()
        End Sub

        Private Function GetData() As List(Of GridDataObject)
            Dim list As New List(Of GridDataObject)()
            list.Add(New GridDataObject() With {.Value1 = "A", .Value2 = 1})
            list.Add(New GridDataObject() With {.Value1 = "B", .Value2 = 2})
            list.Add(New GridDataObject() With {.Value1 = "C", .Value2 = 3})
            Return list
        End Function
    End Class

    Public Class GridDataObject
        Private privateValue1 As String
        Public Property Value1() As String
            Get
                Return privateValue1
            End Get
            Set(ByVal value As String)
                privateValue1 = value
            End Set
        End Property
        Private privateValue2 As Integer
        Public Property Value2() As Integer
            Get
                Return privateValue2
            End Get
            Set(ByVal value As Integer)
                privateValue2 = value
            End Set
        End Property
    End Class
End Namespace
See Also