Browse Source

Oops!

Actually subscribe to the command.CanExecuteChanged event.
pull/39/head
Steven Kirk 12 years ago
parent
commit
5e5692c259
  1. 2
      Perspex.Controls/Button.cs

2
Perspex.Controls/Button.cs

@ -124,7 +124,7 @@ namespace Perspex.Controls
if (newCommand != null)
{
newCommand.CanExecuteChanged -= button.CanExecuteChanged;
newCommand.CanExecuteChanged += button.CanExecuteChanged;
}
button.CanExecuteChanged(button, EventArgs.Empty);

Loading…
Cancel
Save