Задержать вызов метода, пока пользователь все еще печатаетC#

Место общения программистов C#
Ответить
Anonymous
 Задержать вызов метода, пока пользователь все еще печатает

Сообщение Anonymous »


I've got a search box in my MAUI XAML page which calls a method in the ViewModel. The amount of data it has to filter from the database is huge and every time the user types a letter it takes a few seconds to respond with results. I want to delay the method call eg. 1s and when the user stops typing (doesn't type more than 1s) then it calls the filtering method.

How can I do this in MAUI?


Источник: https://stackoverflow.com/questions/780 ... ill-typing
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C#»