private void OnEditorTextChanged(object sender, TextChangedEventArgs e)
{
if (_isUpdatingText)
return;
if (FetchTimer == null) {
FetchTimer = new DispatcherTimer();
FetchTimer.Interval = TimeSpan.FromMilliseconds(Delay);
FetchTimer.Tick += OnFetchTimerTick;
}
FetchTimer.IsEnabled = false;
FetchTimer.Stop();
SetSelectedItem(null);
if (Editor.Text.Length > 0) {
IsLoading = true;
IsDropDownOpen = false;
ItemsSelector.ItemsSource = null;
FetchTimer.IsEnabled = true;
FetchTimer.Start();
} else {
IsDropDownOpen = false;
}
}