I am trying to use Command and CommandParameter binding with Buttons in a WPF application. I have this exact same code working just fine in Silverlight so I am wondering wha
You need to tell WPF that CanExecute can change - you can do this automatically in your TestCommand class like this:
public event EventHandler CanExecuteChanged
{
add{CommandManager.RequerySuggested += value;}
remove{CommandManager.RequerySuggested -= value;}
}
WPF will then ask CanExecute everytime a property changes in the view.