Return Type in Xamarin Numeric Entry (SfNumericTextBox)

23 Jul 20212 minutes to read

You can define the return key type of SfNumericTextBox by using the ReturnType property of the type Xamarin.Forms ReturnType.

<syncfusion:SfNumericTextBox ReturnType= "Next" Value="123" />
SfNumericTextBox numericTextBox = new SfNumericTextBox();
numericTextBox.ReturnType = ReturnType.Next;
numericTextBox.Value = 123;


Default value of ReturnType is Default.

Xamarin.Forms Numeric TextBox with return type

Return Command

The ReturnCommand property defines an ICommand implementation that wraps an action when the user presses return button.

Return Command Parameter

The ReturnCommandParameter property is used to set the parameter that is sent to the ReturnCommand.

    <local:ViewModel />

	<syncfusion:SfNumericTextBox ReturnType="Next" Value="123" ReturnCommand="{Binding CommandProperty}" />
public class ViewModel : INotifyPropertyChanged
        public event PropertyChangedEventHandler PropertyChanged = delegate { };
        public ICommand CommandProperty { protected set; get; }
        public ViewModel()
            CommandProperty = new Command(
                execute: () =>
                canExecute: () =>
                    return true;
        private void OnSubmit()


See also

How to get the localized return key on the iOS keyboard in SfNumericTextBox