Gjallarhorn.Bindable icon indicating copy to clipboard operation
Gjallarhorn.Bindable copied to clipboard

ICommand.CanExecute : | <'a -> bool> ISignal | 'a -> bool

Open kleidemos opened this issue 5 years ago • 1 comments

I want to be able to define commands that can only be executed when parameter is valid. At the moment I need to create a new command for each case / parameter source.

In WPF changing CommandParameter does not call Command.CanExecute when ICommand does not use CommandManager.RequerySuggested for ICommand.CanExecuteChanged. This means that we need a separate implementation for ICommand.

Possible implementation

kleidemos avatar Mar 09 '19 19:03 kleidemos

@kleidemos if you are still here can you create a PR?

FoggyFinder avatar Feb 25 '20 07:02 FoggyFinder