Skip to content

Automatically dispatch CanExecuteChanged event to the UI thread #20729

@ptasev

Description

@ptasev

Is your feature request related to a problem? Please describe.

Manually dispatching this event to the UI thread adds boilerplate to the view models and can cause confusion or frustration when a new user of the framework doesn't understand why things are breaking. See #7644

Describe the solution you'd like

The UI framework performs checks to see if the event is called on the UI thread, and if not then dispatches it automatically. Similar to #10362 for PropertyChanged event.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions