Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using System;
using System.Runtime.CompilerServices;
using Xamarin.Forms;
namespace samples.core.Controls
{
public class EntryMoveNextControl : Entry
{
public static readonly BindableProperty NextEntryProperty = BindableProperty.Create(nameof(NextEntry), typeof(View), typeof(Entry));
public View NextEntry
{
get => (View)GetValue(NextEntryProperty);
set => SetValue(NextEntryProperty, value);
}
protected override void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
base.OnPropertyChanged(propertyName);
this.Completed += (sender, e) =>
{
this.OnNext();
};
}
public void OnNext()
{
NextEntry?.Focus();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.