Skip to main content
Logo Appt Light

Input predictable on Xamarin

Whenever a user provides input, there should be no change of context. Example of changing context include, but are not limited to: automatically submitting data, opening a new screen or moving to another element. Input should have predictable effects.

In Xamarin, be careful when using TextChanged callbacks. Do not trigger a change of context when text changes.

entry.TextChanged += OnEntryTextChanged;

void OnEntryTextChanged(object sender, TextChangedEventArgs args)
{
  // Do not change context
}

Feedback?

Let us know!