TextEdit Class

Represents a text editor with embedded buttons.

Namespace: DevExpress.UI.Xaml.Editors

Assembly: DevExpress.UI.Xaml.Editors.v18.2.dll

Declaration

[ToolboxTabName("DX.18.2: Common Controls")]
public class TextEdit :
    BaseEdit
<ToolboxTabName("DX.18.2: Common Controls")>
Public Class TextEdit
    Inherits BaseEdit
    Implements

Remarks

TextEdit editors allow display of a text editor, a dropdown and an unlimited number of buttons.

TextEdit

To display custom buttons, create ButtonInfo objects and add them to the TextEdit.Buttons collection.

Examples

This example shows how to create a simple TextEdit that displays a text field and a button that clears the entered text.

using System;
using Windows.UI.Xaml.Controls;

namespace TextEdit_example {
    public sealed partial class MainPage : Page {
        public MainPage() {
            this.InitializeComponent();
        }

        private void ButtonInfo_Click(object sender, EventArgs e) {
            textEdit.EditValue = string.Empty;
        }
    }
}

Inheritance

Object
DevExpress.Core.Native.DXControl

Implements

DevExpress.Core.Native.IDependencyPropertyChangeListener
DevExpress.Core.Native.IRoutedEventsRaiser
DevExpress.UI.Xaml.Core.Internal.ILogicalOwner
DevExpress.Utils.IServiceContainer
See Also