Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kleidemos opened this issue Mar 9, 2019 · 1 comment
Open

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

kleidemos opened this issue Mar 9, 2019 · 1 comment

Comments

@kleidemos
Copy link

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

@FoggyFinder
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants