diff --git a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/DropDownButton/Implementation/DropDownButton.cs b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/DropDownButton/Implementation/DropDownButton.cs index 344b8e41..32cf8779 100644 --- a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/DropDownButton/Implementation/DropDownButton.cs +++ b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/DropDownButton/Implementation/DropDownButton.cs @@ -153,6 +153,15 @@ namespace Microsoft.Windows.Controls } void CanExecuteChanged(object sender, EventArgs e) + { + CanExecuteChanged(); + } + + #endregion //Event Handlers + + #region Methods + + private void CanExecuteChanged() { if (Command != null) { @@ -167,10 +176,6 @@ namespace Microsoft.Windows.Controls } } - #endregion //Event Handlers - - #region Methods - /// /// Closes the drop down. /// @@ -267,6 +272,8 @@ namespace Microsoft.Windows.Controls UnhookCommand(oldValue, newValue); HookUpCommand(oldValue, newValue); + + CanExecuteChanged(); //may need to call this when changing the command parameter or target. } #endregion //Command