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

ProcessNewValueEventArgs.DisplayText Property

Gets the text entered by an end-user within the editor’s edit box.

Namespace: DevExpress.Xpf.Editors

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

Declaration

public string DisplayText { get; }

Property Value

Type Description
String

A String value that specifies the text entered by an end-user within the editor’s edit box.

Example

This example shows how to manually initialize a new value and add it to a data source.

Update: Starting with version 13.1 of DevExpress controls, you can use the DevExpress MVVM Framework to accomplish this task. It is necessary to create a command in the view model (for instance, the ShowProductFormCommand command) and bind it with the LookUpEditBase.ProcessNewValue event via the trigger. This would allow you to display the dialog (UserControl1.xaml file) for editing new source items in the LookUpEdit control when this even is raised. Then, you can implement custom logic in the OnShowProductFormCommandExecute (ProductList.cs file) method to process values in this dialog. Please review our blogs to find additional information about DevExpress MVVM Framework:

<Application x:Class="HowToCreateLookUpEdit.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:HowToCreateLookUpEdit"
             xmlns:viewmodel="clr-namespace:HowToCreateLookUpEdit.ViewModel"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
        <viewmodel:StringToIntConverter x:Key="converter" />
    </Application.Resources>
</Application>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DisplayText property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also