我的Xamarin.Forms应用程序具有一个ListView,其中每个ViewCell都包含一个编辑器。只要轻按“编辑器”,就会触发Focused事件,即使未在键盘上按Done或Enter也会触发Completed事件。怎么回事,如何解决?
改为使用TextChanged事件https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/editor
void EditorTextChanged (object sender, TextChangedEventArgs e)
{
var oldText = e.OldTextValue;
var newText = e.NewTextValue;
}