Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (20 loc) · 1.08 KB

084 ICommand.CanExecuteChanged event behaviour changed in .NET 4.5.md

File metadata and controls

30 lines (20 loc) · 1.08 KB

84: ICommand.CanExecuteChanged event behaviour changed in .NET 4.5

Scope

Minor

Version Introduced

4.5

Version Reverted

4.5

Source Analyzer Status

Planned

Change Description

In the .NET Framework 4.5, a CanExecuteChangedEvent was ignored unless the sender of the event was the same object as the object that raised the event. This bug was fixed in .NET Framework 4.5 servicing updates.

  • Quirked
  • Build-time break

Recommended Action

This bug has been fixed in the .NET Framework 4.5 servicing releases, so it can be avoided by making sure that the .NET Framework is up-to-date or by upgrading to .NET Framework 4.5.1. Alternatively, application code using ICommand can be modified to make sure that the sender when raising a CanExecuteChanged command is the same as the object raising the event.

Affected APIs

  • E:System.Windows.Input.ICommand.CanExecuteChanged

Category

Windows Presentation Foundation (WPF)

More information