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

.NET MAUI Entry Commands

When using Telerik UI for .NET MAUI Entry control, you can use the following commands:

  • ReturnCommand(ICommand)—Execute when the return key of the keyboard is pressed.

The ReturnCommand has a command parameter—ReturnCommandParameter which can be used to pass a parameter to the command execute method.

When using MVVM design pattern use the Entry's Commands instead of the event handler.

<telerik:RadEntry x:Name="entry"
                  ReturnCommand="{Binding EntryReturnCommand}"/>
public MainPage()
{
  InitializeComponent();

  this.BindingContext = new ViewModel();
}
public class ViewModel
{
    public ViewModel()
    {
        EntryReturnCommand = new Command(EntryReturn);
    }

    public Command EntryReturnCommand { get; set; }

    private void EntryReturn()
    {
    // implement your logic here
    }
}

See Also

In this article