XamarinCommunityToolkit AsyncCommand allowsMultipleExecutions

Ángel Rubén Valdeolmos Carmona 586 Reputation points
2021-03-12T12:57:54.37+00:00

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?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
C#
C#
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
    2021-03-12T14:08:53.153+00:00

    you can return false in CanExecute method