So to speak, I have a button (MyButton) that binds to:
public ICommand MyCommand { get; set; }
I will register this command with
MyCommand = new DelegateCommand<object>(DoSomething);
Now if i do
MyButton.IsEnabled = false;
He does nothing, i.e. the button is still on. I know that the command calls this because if I delete the new delegate code above, the button will be disabled.
My questions:
1. Is there a way to tell me this binding to the command so as not to be confused with my IsEnabled button
2. Is there a way to change the visibility only using the command property (which would probably be a more correct way) anyway
Thank!!
source
share