CommunityToolkit icon indicating copy to clipboard operation
CommunityToolkit copied to clipboard

AsyncRelayCommand.NotifyCanExecuteChanged() must be run on the main thread

Open widnat opened this issue 1 year ago • 6 comments

Type of issue

Missing information

Description

In multiple instances, after calling MyAsyncRelayCommand.NotifyCanExecuteChanged() my Android app was crashing because this call needs to be run on the main thread.

Page URL

https://learn.microsoft.com/en-us/dotnet/communitytoolkit/mvvm/asyncrelaycommand

Content source URL

https://github.com/MicrosoftDocs/CommunityToolkit/blob/main/docs/mvvm/AsyncRelayCommand.md

Document Version Independent Id

708935cd-5970-b89b-8443-2e758f35a54b

Article author

@Sergio0694

Metadata

  • ID: 708935cd-5970-b89b-8443-2e758f35a54b
  • Service: dotnet-communitytoolkit
  • Sub-service: mvvm-toolkit

widnat avatar Aug 23 '24 16:08 widnat