Skip to content

The Button command in ItemTemplate synchronizes the IsEnabled effect #721

Answered by Sergio0694
CodingOctocat asked this question in Q&A
Discussion options

You must be logged in to vote

Are all buttons binding to the same command? If so, the reason is probably that async commands have concurrency control enabled by default — ie. they're disabled while an operation is running. You can change this by using [RelayCommand(AllowConcurrentExecutions = true)] (or passing the corresponding option, if you're constructing the command manually). Of course, then it's up to you to disable the buttons when needed, with whatever logic you want (eg. per button, with some criteria you want) 🙂

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@CodingOctocat
Comment options

@CodingOctocat
Comment options

Answer selected by Sergio0694
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants