Skip to content

Improvement Request: Clarify the use of ICommand.ChangeCanExecute() – Must it be called manually? #3065

@SetTrend

Description

@SetTrend

Type of issue

Missing information

Description

When using WPF, the ICommand.CanExecute method is called by the framework when a dependency property changes.

However, the documentation page for MAUI Commanding seems to imply that the ICommand.CanExecuteChanged event must be raised manually for the ICommand.CanExecute method to be processed. This is not explicitly stated, though.

Please clarify whether the ICommand.CanExecuteChanged event must be raised manually or if the ICommand.CanExecute method is called automatically by the framework.

Page URL

https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/data-binding/commanding?view=net-maui-9.0

Content source URL

https://github.com/dotnet/docs-maui/blob/main/docs/fundamentals/data-binding/commanding.md

Document Version Independent Id

7d99bbf7-baf8-ce1d-1580-97f730028cd1

Platform Id

813ec11d-1bce-11b3-c0b7-15286b7ef973

Article author

@davidortinau

Metadata

  • ID: 7d99bbf7-baf8-ce1d-1580-97f730028cd1
  • PlatformId: 813ec11d-1bce-11b3-c0b7-15286b7ef973
  • Service: dotnet-mobile
  • Sub-service: dotnet-maui

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions