New to Telerik UI for .NET MAUI? Start a free 30-day trial

.NET MAUI Entry Events

The Telerik UI for .NET MAUI Entry control exposes a number of events and commands for notifying after user interactions.

The Entry supports the following events:

  • TextChanged—Occurs when the text is changed. The TextChanged event handler receives a TextChangedEventArgs argument containing data related to this event. The TextChangedEventArgs provides the following properties:

    • NewTextValue(string)—Gets the new text value.
    • OldTextValue(string)—Gets the old text value.
  • Completed—Occurs when the user finalizes the text in an entry with the return key.

The following example demonstrates the Entry definition in XAML with the TextChanged and Completed event handlers.

1. Define the Entry.

    <telerik:RadEntry x:Name="entry"
                      WatermarkText="Watermark Text"
    <Label x:Name="textChangedLabel"/>
2. Set the TexhChanged event.
private void Entry_TextChanged(object sender, TextChangedEventArgs e)
    this.textChangedLabel.Text = $"Text changed from {e.OldTextValue} to {e.NewTextValue}";

3. Set the Completed event.

private void Entry_Completed(object sender, EventArgs e)
    this.textChangedLabel.Text = "User completed entering text";

See Also

In this article