XamarinCommunityToolkit AsyncCommand allowsMultipleExecutions

Ángel Rubén Valdeolmos Carmona 586 Reputation points

AsyncCommand from XamarinCommunityToolkit has a parameter which is allowsMultipleExecutions, I set it to false so it won't run many times, how do I do the same with a normal Command? I don't want to pass everything to AsyncCommand and wrap it in tasks. It's possible?

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,620 questions
{count} votes

1 answer

Sort by: Most helpful
  1. lee_d 1 Reputation point

    you can return false in CanExecute method