From 5e5692c2598af98e56fecce785186f164bc776d1 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Thu, 26 Feb 2015 02:59:33 +0100 Subject: [PATCH] Oops! Actually subscribe to the command.CanExecuteChanged event. --- Perspex.Controls/Button.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Perspex.Controls/Button.cs b/Perspex.Controls/Button.cs index 47873dc3f7..197194389c 100644 --- a/Perspex.Controls/Button.cs +++ b/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);