Задержать вызов метода, пока пользователь все еще печатает ⇐ C#
-
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
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
Мобильная версия