wpf-devexpress-dot-xpf-dot-editors-dot-autosuggesteditquerysubmittedeventargs.md
Gets the text entered by an end user.
Namespace : DevExpress.Xpf.Editors
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public string Text { get; }
Public ReadOnly Property Text As String
| Type | Description |
|---|---|
| String |
Text entered by an end user.
|
Use the Text property to get the text currently entered by an end user.
Use the provided text to create a list of suggestions for the AutoSuggestEdit editor.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Text 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.
wpf-data-grid-use-autosuggesteditsettings/CS/MainWindow.xaml.cs#L35
void QuerySubmitted(object sender, AutoSuggestEditQuerySubmittedEventArgs e) {
ActiveEditor.ItemsSource = new List<string>(Enumerable.Range(0, 10).Select(c => e.Text + " item #" + c));
}
wpf-data-grid-use-autosuggesteditsettings/VB/MainWindow.xaml.vb#L38
Private Sub QuerySubmitted(ByVal sender As Object, ByVal e As AutoSuggestEditQuerySubmittedEventArgs)
ActiveEditor.ItemsSource = New List(Of String)(Enumerable.Range(0, 10).[Select](Function(c) e.Text & " item #" & c))
End Sub
See Also
AutoSuggestEditQuerySubmittedEventArgs Class